Add W3C Basic Geo Vocabulary XML schema
This commit is contained in:
parent
2dac77856f
commit
4c2fb07cd9
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
W3C Basic Geo (WGS84 lat/long) Vocabulary XML schema
|
||||
Copyright (c) 2023 ~lucidiot
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, version 3.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<xs:schema
|
||||
targetNamespace="http://www.w3.org/2003/01/geo/wgs84_pos#"
|
||||
elementFormDefault="qualified"
|
||||
attributeFormDefault="unqualified"
|
||||
xmlns="http://www.w3.org/2003/01/geo/wgs84_pos#"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
>
|
||||
<xs:simpleType name="Latitude">
|
||||
<xs:restriction base="xs:decimal">
|
||||
<xs:minInclusive value="-90" />
|
||||
<xs:maxInclusive value="90" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="Longitude">
|
||||
<xs:restriction base="xs:decimal">
|
||||
<xs:minInclusive value="-180" />
|
||||
<xs:maxInclusive value="180" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:element name="lat" type="Latitude">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Latitude of the location being referred to by this channel or item, in WGS84.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="long" type="Longitude">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Longitude of the location being referred to by this channel or item, in WGS84.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="alt" type="xs:decimal">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Elevation of the location being referred to by this channel or item, in WGS84.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:schema>
|
Loading…
Reference in New Issue