Skip to content

Update GNSSLocationDelivery.xsd for empty coordinates #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: Sequoia
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions S02P03_GNSSLocation/examples/GNSSLocationDeliveryNoFix.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- ITxPT S02P03 GNSSLocation service - GNSSLocation Delivery XML Example -->
<GNSSLocationDelivery version="2.2.1">
<GNSSLocation>
<Latitude>
<Degree />
<Direction />
</Latitude>
<Longitude>
<Degree />
<Direction />
</Longitude>
<Time>08:05:30</Time>
<Date>2019-10-24</Date>
<SignalQuality>aGPS</SignalQuality>
<Fix>NoFix</Fix>
<NumberOfSatellites>0</NumberOfSatellites>
<GNSSType>GPS</GNSSType>
<GNSSCoordinateSystem>WGS84</GNSSCoordinateSystem>
</GNSSLocation>
<Extensions />
</GNSSLocationDelivery>
17 changes: 15 additions & 2 deletions S02P03_GNSSLocation/xsd/GNSSLocationDelivery.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<xs:restriction base="xs:string">
<xs:enumeration value="N"/>
<xs:enumeration value="S"/>
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DegreeLatitudeType">
Expand All @@ -27,23 +28,35 @@
<xs:restriction base="xs:string">
<xs:enumeration value="E"/>
<xs:enumeration value="W"/>
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DegreeLongitudeType">
<xs:restriction base="xs:double">
<xs:minInclusive value="-180.0"/>
<xs:maxInclusive value="+180.0"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DegreeEmptyType">
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OptDegreeLatitudeType">
<xs:union memberTypes="DegreeLatitudeType DegreeEmptyType"/>
</xs:simpleType>
<xs:simpleType name="OptDegreeLongitudeType">
<xs:union memberTypes="DegreeLongitudeType DegreeEmptyType"/>
</xs:simpleType>
<xs:complexType name="LatitudeType">
<xs:sequence>
<xs:element name="Degree" type="DegreeLatitudeType"/>
<xs:element name="Degree" type="OptDegreeLatitudeType"/>
<xs:element name="Direction" type="DirectionLatitudeType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LongitudeType">
<xs:sequence>
<xs:element name="Degree" type="DegreeLongitudeType"/>
<xs:element name="Degree" type="OptDegreeLongitudeType"/>
<xs:element name="Direction" type="DirectionLongitudeType"/>
</xs:sequence>
</xs:complexType>
Expand Down