feature.xsd 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:gml="http://www.opengis.net/gml"
  3. xmlns:xlink="http://www.w3.org/1999/xlink"
  4. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  7. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  8. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  9. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  10. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  11. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  12. targetNamespace="http://www.opengis.net/gml"
  13. elementFormDefault="qualified"
  14. version="2.1.2">
  15. <xs:annotation>
  16. <xs:appinfo>feature.xsd v2.1.2 2002-07</xs:appinfo>
  17. <xs:documentation xml:lang="en">
  18. GML Feature schema. Copyright (c) 2002 OGC, All Rights Reserved.
  19. </xs:documentation>
  20. </xs:annotation>
  21. <!-- include constructs from the GML Geometry schema -->
  22. <xs:include schemaLocation="geometry.xsd"/>
  23. <!-- bring in the XLink namespace -->
  24. <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlinks.xsd"/>
  25. <!-- ==============================================================
  26. global declarations
  27. =================================================================== -->
  28. <xs:element name="_Feature"
  29. type="gml:AbstractFeatureType"
  30. abstract="true"
  31. id="___d15e229-1__Feature"/>
  32. <xs:element name="_FeatureCollection"
  33. type="gml:AbstractFeatureCollectionType"
  34. abstract="true"
  35. substitutionGroup="gml:_Feature"
  36. id="___d15e230-1__FeatureCo"/>
  37. <xs:element name="featureMember"
  38. type="gml:FeatureAssociationType"
  39. id="___d15e231-1_featureMem"/>
  40. <!-- some basic geometric properties of features -->
  41. <xs:element name="_geometryProperty"
  42. type="gml:GeometryAssociationType"
  43. abstract="true"
  44. id="___d15e233-1__geometryP"/>
  45. <xs:element name="geometryProperty"
  46. type="gml:GeometryAssociationType"
  47. id="___d15e235-1_geometryPr"/>
  48. <xs:element name="boundedBy"
  49. type="gml:BoundingShapeType"
  50. id="___d15e236-1_boundedBy"/>
  51. <xs:element name="pointProperty"
  52. type="gml:PointPropertyType"
  53. substitutionGroup="gml:_geometryProperty"
  54. id="___d15e237-1_pointPrope"/>
  55. <xs:element name="polygonProperty"
  56. type="gml:PolygonPropertyType"
  57. substitutionGroup="gml:_geometryProperty"
  58. id="___d15e238-1_polygonPro"/>
  59. <xs:element name="lineStringProperty"
  60. type="gml:LineStringPropertyType"
  61. substitutionGroup="gml:_geometryProperty"
  62. id="___d15e239-1_lineString"/>
  63. <xs:element name="multiPointProperty"
  64. type="gml:MultiPointPropertyType"
  65. substitutionGroup="gml:_geometryProperty"
  66. id="___d15e240-1_multiPoint"/>
  67. <xs:element name="multiLineStringProperty"
  68. type="gml:MultiLineStringPropertyType"
  69. substitutionGroup="gml:_geometryProperty"
  70. id="___d15e241-1_multiLineS"/>
  71. <xs:element name="multiPolygonProperty"
  72. type="gml:MultiPolygonPropertyType"
  73. substitutionGroup="gml:_geometryProperty"
  74. id="___d15e242-1_multiPolyg"/>
  75. <xs:element name="multiGeometryProperty"
  76. type="gml:MultiGeometryPropertyType"
  77. substitutionGroup="gml:_geometryProperty"
  78. id="___d15e243-1_multiGeome"/>
  79. <!-- common aliases for geometry properties -->
  80. <xs:element name="location"
  81. type="gml:PointPropertyType"
  82. substitutionGroup="gml:pointProperty"
  83. id="___d15e245-1_location"/>
  84. <xs:element name="centerOf"
  85. type="gml:PointPropertyType"
  86. substitutionGroup="gml:pointProperty"
  87. id="___d15e247-1_centerOf"/>
  88. <xs:element name="position"
  89. type="gml:PointPropertyType"
  90. substitutionGroup="gml:pointProperty"
  91. id="___d15e248-1_position"/>
  92. <xs:element name="extentOf"
  93. type="gml:PolygonPropertyType"
  94. substitutionGroup="gml:polygonProperty"
  95. id="___d15e249-1_extentOf"/>
  96. <xs:element name="coverage"
  97. type="gml:PolygonPropertyType"
  98. substitutionGroup="gml:polygonProperty"
  99. id="___d15e250-1_coverage"/>
  100. <xs:element name="edgeOf"
  101. type="gml:LineStringPropertyType"
  102. substitutionGroup="gml:lineStringProperty"
  103. id="___d15e251-1_edgeOf"/>
  104. <xs:element name="centerLineOf"
  105. type="gml:LineStringPropertyType"
  106. substitutionGroup="gml:lineStringProperty"
  107. id="___d15e252-1_centerLine"/>
  108. <xs:element name="multiLocation"
  109. type="gml:MultiPointPropertyType"
  110. substitutionGroup="gml:multiPointProperty"
  111. id="___d15e253-1_multiLocat"/>
  112. <xs:element name="multiCenterOf"
  113. type="gml:MultiPointPropertyType"
  114. substitutionGroup="gml:multiPointProperty"
  115. id="___d15e254-1_multiCente"/>
  116. <xs:element name="multiPosition"
  117. type="gml:MultiPointPropertyType"
  118. substitutionGroup="gml:multiPointProperty"
  119. id="___d15e255-1_multiPosit"/>
  120. <xs:element name="multiCenterLineOf"
  121. type="gml:MultiLineStringPropertyType"
  122. substitutionGroup="gml:multiLineStringProperty"
  123. id="___d15e256-1_multiCente"/>
  124. <xs:element name="multiEdgeOf"
  125. type="gml:MultiLineStringPropertyType"
  126. substitutionGroup="gml:multiLineStringProperty"
  127. id="___d15e257-1_multiEdgeO"/>
  128. <xs:element name="multiCoverage"
  129. type="gml:MultiPolygonPropertyType"
  130. substitutionGroup="gml:multiPolygonProperty"
  131. id="___d15e259-1_multiCover"/>
  132. <xs:element name="multiExtentOf"
  133. type="gml:MultiPolygonPropertyType"
  134. substitutionGroup="gml:multiPolygonProperty"
  135. id="___d15e260-1_multiExten"/>
  136. <!-- common feature descriptors -->
  137. <xs:element name="description" type="xs:string" id="___d15e262-1_descriptio"/>
  138. <xs:element name="name" type="xs:string" id="___d15e263-1_name"/>
  139. <!-- ==============================================================
  140. abstract supertypes
  141. =================================================================== -->
  142. <xs:complexType name="AbstractFeatureType"
  143. abstract="true"
  144. id="___d15e265-1_AbstractFe">
  145. <xs:annotation>
  146. <xs:documentation>
  147. An abstract feature provides a set of common properties. A concrete
  148. feature type must derive from this type and specify additional
  149. properties in an application schema. A feature may optionally
  150. possess an identifying attribute ('fid').
  151. </xs:documentation>
  152. </xs:annotation>
  153. <xs:sequence id="___d15e269-1">
  154. <xs:element ref="gml:description" minOccurs="0" id="___d15e270-1"/>
  155. <xs:element ref="gml:name" minOccurs="0" id="___d15e271-1"/>
  156. <xs:element ref="gml:boundedBy" minOccurs="0" id="___d15e272-1"/>
  157. <!-- additional properties must be specified in an application schema -->
  158. </xs:sequence>
  159. <xs:attribute name="fid" type="xs:ID" use="optional" id="___d15e274-1_fid"/>
  160. </xs:complexType>
  161. <xs:complexType name="AbstractFeatureCollectionBaseType"
  162. abstract="true"
  163. id="___d15e275-1_AbstractFe">
  164. <xs:annotation>
  165. <xs:documentation>
  166. This abstract base type just makes the boundedBy element mandatory
  167. for a feature collection.
  168. </xs:documentation>
  169. </xs:annotation>
  170. <xs:complexContent id="___d15e279-1">
  171. <xs:restriction base="gml:AbstractFeatureType">
  172. <xs:sequence id="___d15e281-1">
  173. <xs:element ref="gml:description" minOccurs="0" id="___d15e282-1"/>
  174. <xs:element ref="gml:name" minOccurs="0" id="___d15e283-1"/>
  175. <xs:element ref="gml:boundedBy" id="___d15e284-1"/>
  176. </xs:sequence>
  177. <xs:attribute name="fid" type="xs:ID" use="optional" id="___d15e285-1_fid"/>
  178. </xs:restriction>
  179. </xs:complexContent>
  180. </xs:complexType>
  181. <xs:complexType name="AbstractFeatureCollectionType"
  182. abstract="true"
  183. id="___d15e286-1_AbstractFe">
  184. <xs:annotation>
  185. <xs:documentation>
  186. A feature collection contains zero or more featureMember elements.
  187. </xs:documentation>
  188. </xs:annotation>
  189. <xs:complexContent id="___d15e290-1">
  190. <xs:extension base="gml:AbstractFeatureCollectionBaseType" id="___d15e291-1">
  191. <xs:sequence id="___d15e292-1">
  192. <xs:element ref="gml:featureMember"
  193. minOccurs="0"
  194. maxOccurs="unbounded"
  195. id="___d15e293-1"/>
  196. </xs:sequence>
  197. </xs:extension>
  198. </xs:complexContent>
  199. </xs:complexType>
  200. <xs:complexType name="GeometryPropertyType" id="___d15e294-1_GeometryPr">
  201. <xs:annotation>
  202. <xs:documentation>
  203. A simple geometry property encapsulates a geometry element.
  204. Alternatively, it can function as a pointer (simple-type link)
  205. that refers to a remote geometry element.
  206. </xs:documentation>
  207. </xs:annotation>
  208. <xs:sequence minOccurs="0" id="___d15e298-1">
  209. <xs:element ref="gml:_Geometry" id="___d15e299-1"/>
  210. </xs:sequence>
  211. <xs:attributeGroup ref="xlink:simpleLink"/>
  212. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e301-1"/>
  213. </xs:complexType>
  214. <xs:complexType name="FeatureAssociationType" id="___d15e302-1_FeatureAss">
  215. <xs:annotation>
  216. <xs:documentation>
  217. An instance of this type (e.g. a featureMember) can either
  218. enclose or point to a feature (or feature collection); this
  219. type can be restricted in an application schema to allow only
  220. specified features as valid participants in the association.
  221. When serving as a simple link that references a remote feature
  222. instance, the value of the gml:remoteSchema attribute can be
  223. used to locate a schema fragment that constrains the target
  224. instance.
  225. </xs:documentation>
  226. </xs:annotation>
  227. <xs:sequence minOccurs="0" id="___d15e306-1">
  228. <xs:element ref="gml:_Feature" id="___d15e307-1"/>
  229. </xs:sequence>
  230. <xs:attributeGroup ref="xlink:simpleLink"/>
  231. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e309-1"/>
  232. </xs:complexType>
  233. <xs:complexType name="BoundingShapeType" id="___d15e311-1_BoundingSh">
  234. <xs:annotation>
  235. <xs:documentation>
  236. Bounding shapes--a Box or a null element are currently allowed.
  237. </xs:documentation>
  238. </xs:annotation>
  239. <xs:sequence id="___d15e315-1">
  240. <xs:choice id="___d15e316-1">
  241. <xs:element ref="gml:Box" id="___d15e317-1"/>
  242. <xs:element name="null" type="gml:NullType" id="___d15e318-1_null"/>
  243. </xs:choice>
  244. </xs:sequence>
  245. </xs:complexType>
  246. <!-- ==============================================================
  247. geometry properties
  248. =================================================================== -->
  249. <xs:complexType name="PointPropertyType" id="___d15e320-1_PointPrope">
  250. <xs:annotation>
  251. <xs:documentation>
  252. Encapsulates a single point to represent position, location, or
  253. centerOf properties.
  254. </xs:documentation>
  255. </xs:annotation>
  256. <xs:complexContent id="___d15e324-1">
  257. <xs:restriction base="gml:GeometryAssociationType">
  258. <xs:sequence minOccurs="0" id="___d15e326-1">
  259. <xs:element ref="gml:Point" id="___d15e327-1"/>
  260. </xs:sequence>
  261. <xs:attributeGroup ref="xlink:simpleLink"/>
  262. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e329-1"/>
  263. </xs:restriction>
  264. </xs:complexContent>
  265. </xs:complexType>
  266. <xs:complexType name="PolygonPropertyType" id="___d15e330-1_PolygonPro">
  267. <xs:annotation>
  268. <xs:documentation>
  269. Encapsulates a single polygon to represent coverage or extentOf
  270. properties.
  271. </xs:documentation>
  272. </xs:annotation>
  273. <xs:complexContent id="___d15e334-1">
  274. <xs:restriction base="gml:GeometryAssociationType">
  275. <xs:sequence minOccurs="0" id="___d15e336-1">
  276. <xs:element ref="gml:Polygon" id="___d15e337-1"/>
  277. </xs:sequence>
  278. <xs:attributeGroup ref="xlink:simpleLink"/>
  279. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e339-1"/>
  280. </xs:restriction>
  281. </xs:complexContent>
  282. </xs:complexType>
  283. <xs:complexType name="LineStringPropertyType" id="___d15e340-1_LineString">
  284. <xs:annotation>
  285. <xs:documentation>
  286. Encapsulates a single LineString to represent centerLineOf or
  287. edgeOf properties.
  288. </xs:documentation>
  289. </xs:annotation>
  290. <xs:complexContent id="___d15e344-1">
  291. <xs:restriction base="gml:GeometryAssociationType">
  292. <xs:sequence minOccurs="0" id="___d15e346-1">
  293. <xs:element ref="gml:LineString" id="___d15e347-1"/>
  294. </xs:sequence>
  295. <xs:attributeGroup ref="xlink:simpleLink"/>
  296. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e349-1"/>
  297. </xs:restriction>
  298. </xs:complexContent>
  299. </xs:complexType>
  300. <xs:complexType name="MultiPointPropertyType" id="___d15e350-1_MultiPoint">
  301. <xs:annotation>
  302. <xs:documentation>
  303. Encapsulates a MultiPoint element to represent the following
  304. discontiguous geometric properties: multiLocation, multiPosition,
  305. multiCenterOf.
  306. </xs:documentation>
  307. </xs:annotation>
  308. <xs:complexContent id="___d15e354-1">
  309. <xs:restriction base="gml:GeometryAssociationType">
  310. <xs:sequence minOccurs="0" id="___d15e356-1">
  311. <xs:element ref="gml:MultiPoint" id="___d15e357-1"/>
  312. </xs:sequence>
  313. <xs:attributeGroup ref="xlink:simpleLink"/>
  314. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e359-1"/>
  315. </xs:restriction>
  316. </xs:complexContent>
  317. </xs:complexType>
  318. <xs:complexType name="MultiLineStringPropertyType" id="___d15e360-1_MultiLineS">
  319. <xs:annotation>
  320. <xs:documentation>
  321. Encapsulates a MultiLineString element to represent the following
  322. discontiguous geometric properties: multiEdgeOf, multiCenterLineOf.
  323. </xs:documentation>
  324. </xs:annotation>
  325. <xs:complexContent id="___d15e364-1">
  326. <xs:restriction base="gml:GeometryAssociationType">
  327. <xs:sequence minOccurs="0" id="___d15e366-1">
  328. <xs:element ref="gml:MultiLineString" id="___d15e367-1"/>
  329. </xs:sequence>
  330. <xs:attributeGroup ref="xlink:simpleLink"/>
  331. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e369-1"/>
  332. </xs:restriction>
  333. </xs:complexContent>
  334. </xs:complexType>
  335. <xs:complexType name="MultiPolygonPropertyType" id="___d15e370-1_MultiPolyg">
  336. <xs:annotation>
  337. <xs:documentation>
  338. Encapsulates a MultiPolygon to represent the following discontiguous
  339. geometric properties: multiCoverage, multiExtentOf.
  340. </xs:documentation>
  341. </xs:annotation>
  342. <xs:complexContent id="___d15e374-1">
  343. <xs:restriction base="gml:GeometryAssociationType">
  344. <xs:sequence minOccurs="0" id="___d15e376-1">
  345. <xs:element ref="gml:MultiPolygon" id="___d15e377-1"/>
  346. </xs:sequence>
  347. <xs:attributeGroup ref="xlink:simpleLink"/>
  348. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e379-1"/>
  349. </xs:restriction>
  350. </xs:complexContent>
  351. </xs:complexType>
  352. <xs:complexType name="MultiGeometryPropertyType" id="___d15e380-1_MultiGeome">
  353. <xs:annotation>
  354. <xs:documentation>Encapsulates a MultiGeometry element.</xs:documentation>
  355. </xs:annotation>
  356. <xs:complexContent id="___d15e384-1">
  357. <xs:restriction base="gml:GeometryAssociationType">
  358. <xs:sequence minOccurs="0" id="___d15e386-1">
  359. <xs:element ref="gml:MultiGeometry" id="___d15e387-1"/>
  360. </xs:sequence>
  361. <xs:attributeGroup ref="xlink:simpleLink"/>
  362. <xs:attribute ref="gml:remoteSchema" use="optional" id="___d15e389-1"/>
  363. </xs:restriction>
  364. </xs:complexContent>
  365. </xs:complexType>
  366. <xs:simpleType name="NullType" id="___d15e390-1_NullType">
  367. <xs:annotation>
  368. <xs:documentation>
  369. If a bounding shape is not provided for a feature collection,
  370. explain why. Allowable values are:
  371. innapplicable - the features do not have geometry
  372. unknown - the boundingBox cannot be computed
  373. unavailable - there may be a boundingBox but it is not divulged
  374. missing - there are no features
  375. </xs:documentation>
  376. </xs:annotation>
  377. <xs:restriction base="xs:string">
  378. <xs:enumeration value="inapplicable"/>
  379. <xs:enumeration value="unknown"/>
  380. <xs:enumeration value="unavailable"/>
  381. <xs:enumeration value="missing"/>
  382. </xs:restriction>
  383. </xs:simpleType>
  384. </xs:schema>