UNPKG

@mangosystem/ogc-schemas

Version:

Jsonix XML-JSON mappings for OGC Schemas.

137 lines (132 loc) 7.16 kB
<?xml version="1.0" encoding="UTF-8"?> <wml2:Collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:om="http://www.opengis.net/om/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wml2="http://www.opengis.net/waterml/2.0" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:swe="http://www.opengis.net/swe/2.0" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:sam="http://www.opengis.net/sampling/2.0" xmlns:sams="http://www.opengis.net/samplingSpatial/2.0" xsi:schemaLocation="http://www.opengis.net/waterml/2.0 http://schemas.opengis.net/waterml/2.0/waterml2.xsd" gml:id="xsd-collection.example"> <gml:description>Example collection for XML encoding http://www.opengis.net/spec/waterml/2.0/req/xsd-collection</gml:description> <wml2:metadata> <wml2:DocumentMetadata gml:id="document-metadata.1"> <wml2:generationDate>2011-11-28T10:05:05+11:00</wml2:generationDate> <wml2:version xlink:href="http://www.opengis.net/waterml/2.0" xlink:title="WaterML 2.0"/> <wml2:generationSystem>Manual</wml2:generationSystem> <wml2:profile xlink:href="http://www.opengis.net/spec/waterml/2.0/conf/xsd-xml-rules"/> <wml2:profile xlink:href="http://www.opengis.net/spec/waterml/2.0/conf/xsd-measurement-timeseries-tvp-observation"/> <wml2:profile xlink:href="http://www.opengis.net/spec/waterml/2.0/conf/xsd-measurement-timeseries-tvp"/> <wml2:profile xlink:href="http://www.opengis.net/spec/waterml/2.0/conf/xsd-feature-of-interest-monitoring-point"/> <wml2:profile xlink:href="http://www.opengis.net/spec/waterml/2.0/conf/xsd-collection"/> <wml2:profile xlink:href="http://www.opengis.net/spec/waterml/2.0/conf/xsd-observation-process"/> </wml2:DocumentMetadata> </wml2:metadata> <wml2:temporalExtent> <gml:TimePeriod gml:id="time-period.1"> <gml:beginPosition>2011-11-21T12:30:00+10:00</gml:beginPosition> <gml:endPosition>2011-11-21T12:45:35+10:00</gml:endPosition> </gml:TimePeriod> </wml2:temporalExtent> <wml2:localDictionary> <gml:Dictionary gml:id="phenom_codes"> <gml:identifier codeSpace=" http://sweet.jpl.nasa.gov/2.3/">sweet_phenomenon</gml:identifier> <gml:dictionaryEntry> <gml:Definition gml:id="temperature"> <gml:identifier codeSpace="http://sweet.jpl.nasa.gov/2.3/propTemperature.owl">Temperature</gml:identifier> <gml:name codeSpace="http://sweet.jpl.nasa.gov/2.3/propTemperature.owl">Temperature</gml:name> <gml:remarks>NASA SWEET definition of temperature</gml:remarks> </gml:Definition> </gml:dictionaryEntry> </gml:Dictionary> </wml2:localDictionary> <wml2:samplingFeatureMember> <wml2:MonitoringPoint gml:id="monitoring-point.1"> <gml:name codeSpace="http://www.csiro.au/">Deddington</gml:name> <sam:sampledFeature xlink:href="http://csiro.au/features/rivers/south_esk/deddington" xlink:title="Deddington"/> <sams:shape> <gml:Point gml:id="location_deddington"> <gml:pos srsName="urn:ogc:def:crs:EPSG::4326">-41.814935 147.568517 </gml:pos> </gml:Point> </sams:shape> <wml2:verticalDatum xlink:href="urn:ogc:def:crs:EPSG::5711" xlink:title="Australian height datum"/> <wml2:timeZone> <wml2:TimeZone> <wml2:zoneOffset>+11:00</wml2:zoneOffset> <wml2:zoneAbbreviation>AEDT</wml2:zoneAbbreviation> </wml2:TimeZone> </wml2:timeZone> </wml2:MonitoringPoint> </wml2:samplingFeatureMember> <wml2:observationMember> <om:OM_Observation gml:id="observation.1"> <gml:identifier codeSpace="http://www.example.com/observations">EX.OB.B.1</gml:identifier> <om:metadata> <wml2:ObservationMetadata> <gmd:contact xlink:href="http://www.example.com" xlink:title="Example Pty Ltd"/> <gmd:dateStamp> <gco:DateTime>2011-11-28T10:01:00+10:00</gco:DateTime> </gmd:dateStamp> <gmd:identificationInfo xlink:href="http://www.example.com/observations/C.1" xlink:title="Observation C.1"/> <wml2:intendedObservationSpacing>PT15M</wml2:intendedObservationSpacing> <wml2:status xlink:href="http://water.usgs.gov/provisional.html" xlink:title="Provisional data"/> <wml2:sampledMedium xlink:href="http://www.opengis.net/def/waterml/2.0/medium/SurfaceWater" xlink:title="Surface water"/> </wml2:ObservationMetadata> </om:metadata> <om:phenomenonTime xlink:href="#time-period.1" xlink:title="Temporal Extent"/> <om:resultTime> <gml:TimeInstant gml:id="time-instant.1"> <gml:timePosition>2011-11-21T12:45:35+10:00</gml:timePosition> </gml:TimeInstant> </om:resultTime> <om:procedure> <wml2:ObservationProcess gml:id="observation-process.1"> <wml2:processType xlink:href="http://www.opengis.net/def/waterml/2.0/processType/Sensor" xlink:title="Sensor"/> <wml2:processReference xlink:href="http://www.example.com/sensor/1.0" xlink:title="Sensor Sampling Regime 1.0"/> </wml2:ObservationProcess> </om:procedure> <om:observedProperty xlink:href="#temperature" xlink:title="Temperature"/> <om:featureOfInterest xlink:href="#monitoring-point.1" xlink:title="Deddington"/> <om:result> <wml2:MeasurementTimeseries gml:id="timeseries.1"> <wml2:metadata> <wml2:TimeseriesMetadata> <wml2:temporalExtent xlink:href="#time-period.1"/> </wml2:TimeseriesMetadata> </wml2:metadata> <wml2:defaultPointMetadata> <wml2:DefaultTVPMeasurementMetadata> <wml2:uom code="Cel"/> <wml2:interpolationType xlink:href="http://www.opengis.net/def/waterml/2.0/interpolationType/continuous" xlink:title="Instantaneous"/> </wml2:DefaultTVPMeasurementMetadata> </wml2:defaultPointMetadata> <wml2:point> <wml2:MeasurementTVP> <wml2:time>2011-11-21T12:30:00+10:00</wml2:time> <wml2:value>10.5</wml2:value> <wml2:metadata> <wml2:TVPMeasurementMetadata> <wml2:qualifier> <swe:Quantity definition=""> <swe:uom code="m"/> <swe:value>95</swe:value> </swe:Quantity> </wml2:qualifier> </wml2:TVPMeasurementMetadata> </wml2:metadata> </wml2:MeasurementTVP> </wml2:point> <wml2:point> <wml2:MeasurementTVP> <wml2:time>2011-11-21T12:45:35+10:00</wml2:time> <wml2:value>10.5</wml2:value> </wml2:MeasurementTVP> </wml2:point> <wml2:point> <wml2:MeasurementTVP> <wml2:time>2011-11-21T13:00:10+10:00</wml2:time> <wml2:value>10.4</wml2:value> </wml2:MeasurementTVP> </wml2:point> </wml2:MeasurementTimeseries> </om:result> </om:OM_Observation> </wml2:observationMember> </wml2:Collection>