GML Guidance for ISO Metadata

From NOAA Environmental Data Management Wiki


WARNING: gml:id attributes must be unique across one metadata file.

GML Units

Units Dictionary from SEEGRID

Meters

<gml:BaseUnit gml:id="ID001">
   <gml:identifier codeSpace="http://urn.opengis.net/">urn:ogc:def:uom:OGC::m</gml:identifier>
   <gml:name>meter</gml:name>
   <gml:unitsSystem xlink:href="http://www.bipm.fr/en/si/"/>
</gml:BaseUnit>

gmd:polygon/gml:LineString

<gmd:polygon>
  <gml:LineString gml:id="ID002" srsName="urn:ogc:def:crs:EPSG::4326">
   <gml:posList>120.27748,22.61839 120.18761,22.63769 120.17214,22.53991 120.05429,22.16867 120.01199,22.12645 120.00135,22.01943 120.06252,21.90396 120.35294,21.48403 120.37861,21.40571 120.37604,21.34815 120.35906,21.30502 120.10236,21.19057 120.08512,21.16013 120.10072,21.13824 120.22287,21.18813 120.33551,21.2616 120.4239,21.33915 120.42161,21.38913 119.55256,22.76568 119.52194,22.78651 119.49204,22.77439 119.47786,22.7447 119.52109,22.60486 119.6674,22.47499 119.73458,22.36784 119.78415,22.37223 119.78778,22.39893 119.4742,22.88693 119.44816,22.89744 119.37347,22.88857 119.2269,22.71746 119.22485,22.69423 119.94128,21.34452 119.9266,21.32749 118.94901,20.98167 118.92662,20.94138 118.94507,20.87394 118.96713,20.86117 119.01475,20.89636 119.02009,20.91664 118.63907,22.46099 118.61382,22.47876 118.43864,22.43546 118.43536,22.4088 118.71316,21.91484 118.70609,21.89098 118.67994,21.88721 118.56096,21.95114 118.55874,21.98347 118.64336,21.99787 118.66055,21.98785 118.64147,21.82774 118.61678,21.81229 118.47464,21.83414 118.48164,21.97625 118.84612,22.01791 118.86534,22.03534 118.84197,22.05854 118.6668,22.05099 118.66114,22.02321 118.71922,22.00649 118.91635,22.02485 120.20044,22.33125 120.22671,22.32764 120.23685,22.30713 120.12194,22.24198 120.02058,22.20767 120.01453,22.33463 120.07933,22.40964 120.11473,22.41882 120.12845,22.39332 119.03449,21.22713 117.7411,19.81533 116.68832,18.64108 116.69465,18.59847 116.71919,18.60374 117.05876,18.99421 117.11727,19.0143 120.52804,19.0021 120.61806,18.99966 120.63304,18.9875 120.62917,18.96598 120.41416,18.76345 120.38721,18.7607 119.02394,19.77431 119.02822,19.82094 119.06,19.84202 119.68217,19.83289 119.71366,19.80128 119.6868,19.78108 119.6465,19.81361 119.19845,22.65374 119.165,22.67165 119.01307,22.59032 119.0026,22.57115 119.06168,22.30221 119.05849,22.25761 119.24312,21.19685 119.2492,21.11487 119.20852,21.0894 119.19279,21.10616 119.11855,21.39059 119.13674,21.41605 122.37164,21.43583 122.50458,21.43177 122.6536,21.37249 122.63804,21.36041 122.49444,21.35543 122.4702,21.35882 122.46093,21.37889 122.46155,21.41366 122.48147,21.43206 123.96004,21.41706 123.98266,21.38761 123.49006,20.56702 121.74597,20.58839 119.01211,20.57019 119.00054,20.58882 119.0115,20.68749 121.06908,21.78377 122.20265,21.78282 122.23269,21.75552 122.24475,21.58202 122.21953,21.56438 122.16919,21.56932 122.16693,22.02628 122.12405,22.05799 121.53854,21.82368 121.2374,21.82707 120.94554,21.66996 120.75636,21.66697 120.61447,21.81164 120.60776,21.85963 120.56905,21.90118 120.34866,21.9903 119.15291,22.65674 119.16538,22.69908 119.30981,22.71573 119.31802,22.73753 119.30344,22.75893 119.27629,22.76466 119.15187,22.71012 119.17847,22.71574 119.18939,22.738 119.17478,22.69522 119.21214,22.73434 119.5153,22.70518 119.52339,22.74833 119.50918,22.7724 119.5115,22.71706 119.52945,22.70059 119.74558,22.67439 119.827,22.68315 120.05737,22.62181 120.28458,22.61497</gml:posList>
  </gml:LineString>
</gmd:polygon>
 <gmd:polygon><gml:LineString gml:id="DY1103_ME70_D20110615-T091648_trackline" srsDimension="2" srsName="EPSG:4326"><gml:posList>-153.3155 56.8903 -153.316 56.8896 -153.3165 56.8891 -153.3169 56.8885 -153.3174 56.888 -153.3179 56.8874 -153.3183 56.8868 -153.3188 56.8863 -153.3192 56.8857 -153.3197 56.8852 -153.3202 56.8846 -153.3206 56.884 -153.3211 56.8835 -153.3215 56.8829 -153.322 56.8824 -153.3224 56.8818 -153.3229 56.8812 -153.3234 56.8807 -153.3238 56.8801 -153.3243 56.8796 -153.3247 56.879 -153.3252 56.8784 -153.3257 56.8779 -153.3261 56.8773 -153.3266 56.8767 -153.327 56.8762 </gml:posList>
</gml:LineString></gmd:polygon>

gmd:EX_TemporalExtent/gml:TimePeriod

<gmd:EX_TemporalExtent id="boundingTemporalExtent">
  <gmd:extent>
   <gml:TimePeriod gml:id="ID003">
     <gml:beginPosition>1846</gml:beginPosition>
     <gml:endPosition indeterminatePosition="now"/>
   </gml:TimePeriod>                    
  </gmd:extent>
</gmd:EX_TemporalExtent>


gml:VerticalCRS

<gml:VerticalCRS gml:id="ID004">
  <gml:identifier codeSpace="OGP">urn:ogc:def:crs:EPSG::5715</gml:identifier>
  <gml:name>msl depth</gml:name>
  <gml:remarks>Approximates geoid. Not specific to any location or epoch.</gml:remarks>
  <gml:domainOfValidity xlink:href="urn:ogc:def:area:EPSG::1262"/>
  <gml:scope>Used for hydrographic surveying.</gml:scope>
  <gml:verticalCS xlink:href="urn:ogc:def:cs:EPSG::6498"/>
  <gml:verticalDatum xlink:href="urn:ogc:def:datum:EPSG::5100"/>
</gml:VerticalCRS>

gml:VerticalCS

<gml:VerticalCS gml:id="ID005">
 <gml:identifier codeSpace="OGP">urn:ogc:def:cs:EPSG::6495</gml:identifier>
 <gml:name>Vertical CS. Axis: depth (D). Orientation: down. UoM: ft.</gml:name>
 <gml:remarks>Used in vertical coordinate reference systems.</gml:remarks>
 <gml:axis>
  <gml:CoordinateSystemAxis gml:id="epsg-axis-214" gml:uom="urn:ogc:def:uom:EPSG::9002">
   <gml:descriptionReference xlink:href="urn:ogc:def:axis-name:EPSG::9905"/>
   <gml:identifier codeSpace="OGP">urn:ogc:def:axis:EPSG::214</gml:identifier>
   <gml:axisAbbrev>D</gml:axisAbbrev>
   <gml:axisDirection codeSpace="EPSG">down</gml:axisDirection>
  </gml:CoordinateSystemAxis>
 </gml:axis>
</gml:VerticalCS>


gml:VerticalDatum

<gml:VerticalDatum gml:id="ID006">
  <gml:identifier codeSpace="OGP">urn:ogc:def:datum:EPSG::5100</gml:identifier>
  <gml:name>Mean Sea Level</gml:name>
  <gml:remarks>msl has geographic and temporal components.  Users are advised to not use this generic vertical datum but to define specific instances of msl based on knowledge of these components; for instance "msl at xxx during 19yy".</gml:remarks>
  <gml:domainOfValidity xlink:href="urn:ogc:def:area:EPSG::1262"/>
  <gml:scope>Hydrography.</gml:scope>
</gml:VerticalDatum>