Commit f8979bfc authored by Paul Taylor's avatar Paul Taylor
Browse files

Adding WGS84 coordinate types to xsd

parent 8e44fd21
Loading
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
@@ -313,4 +313,49 @@
    <xs:simpleType name="VRF">
        <xs:restriction base="ShortString"/>
    </xs:simpleType>
    <xs:simpleType name="VRF">
        <xs:restriction base="ShortString"/>
    </xs:simpleType>
    <xs:simpleType name="GNSSFixMode">
      <xs:restriction base="xs:string">
        <xs:enumeration value="noFix"/>
        <xs:enumeration value="2D"/>
        <xs:enumeration value="3D"/>
        <xs:enumeration value="differentialGNSS"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="WGS84Altitude">
      <xs:restriction base="xs:integer">
        <xs:minInclusive value="-1000"/>
        <xs:maxInclusive value="50000"/>
      </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="UncertaintyMeters">
      <xs:restriction base="xs:integer">
        <xs:minInclusive value="1"/>
        <xs:maxInclusive value="10000"/>
      </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="WGS84CoordinateDecimalExtended">
      <xs:sequence>
        <xs:element name="fixMode" type="GNSSFixMode"/>
        <xs:element name="latitude" type="WGS84LatitudeDecimal" minOccurs="0"/>
        <xs:element name="longitude" type="WGS84LongitudeDecimal" minOccurs="0"/>
        <xs:element name="altitude" type="WGS84Altitude" minOccurs="0"/>
        <xs:element name="uncertaintyLatitude" type="UncertaintyMeters" minOccurs="0"/>
        <xs:element name="uncertaintyLongitude" type="UncertaintyMeters" minOccurs="0"/>
        <xs:element name="uncertaintyAltitude" type="UncertaintyMeters" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
    <xs:complexType name="WGS84CoordinateAngularExtended">
      <xs:sequence>
        <xs:element name="fixMode" type="GNSSFixMode"/>
        <xs:element name="latitude" type="WGS84LatitudeAngular" minOccurs="0"/>
        <xs:element name="longitude" type="WGS84LongitudeAngular" minOccurs="0"/>
        <xs:element name="altitude" type="WGS84Altitude" minOccurs="0"/>
        <xs:element name="uncertaintyLatitude" type="UncertaintyMeters" minOccurs="0"/>
        <xs:element name="uncertaintyLongitude" type="UncertaintyMeters" minOccurs="0"/>
        <xs:element name="uncertaintyAltitude" type="UncertaintyMeters" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
</xs:schema>