TERYT_gminy.xsd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  4. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  5. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  6. targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  7. vc:minVersion="1.1"
  8. xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  9. xmlns:default_db__x3A__TERYT_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  10. xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  11. xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  12. xmlns:ogc="http://www.opengis.net/ogc" xmlns:fes="http://www.opengis.net/fes/2.0"
  13. xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
  14. xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd">
  15. <xs:annotation>
  16. <xs:documentation>CREATE ALGORITHM=UNDEFINED DEFINER=`bzyk`@`94.158.130.34` SQL SECURITY DEFINER VIEW `TERYT_gminy`
  17. AS SELECT
  18. ((((`TERYT_TERC`.`WOJ` * 16777216) + (`TERYT_TERC`.`POW` * 65536)) + (`TERYT_TERC`.`GMI` * 256)) + `TERYT_TERC`.`RODZ`) AS `ID`,
  19. `TERYT_TERC`.`WOJ` AS `ID_TERYT_wojewodztwa`,((`TERYT_TERC`.`WOJ` * 256) + `TERYT_TERC`.`POW`) AS `ID_TERYT_powiaty`,
  20. `TERYT_TERC`.`WOJ` AS `WOJ`,
  21. `TERYT_TERC`.`POW` AS `POW`,
  22. `TERYT_TERC`.`GMI` AS `GMI`,
  23. `TERYT_TERC`.`RODZ` AS `RODZ`,
  24. `TERYT_TERC`.`NAZWA` AS `NAZWA`,
  25. `TERYT_TERC`.`NAZWA_DOD` AS `NAZWA_DOD`
  26. FROM `TERYT_TERC` where (`TERYT_TERC`.`GMI` is not null);</xs:documentation>
  27. </xs:annotation>
  28. <xs:import schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"
  29. namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"/>
  30. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
  31. schemaLocation="../../default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd"/>
  32. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  33. schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
  34. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  35. schemaLocation="../../default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd"/>
  36. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  37. schemaLocation="../../default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd"/>
  38. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
  39. schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"/>
  40. <xs:complexType name="TERYT_gminy">
  41. <xs:sequence>
  42. <xs:element name="ID" type="xs:int">
  43. <xs:annotation>
  44. <xs:documentation>((((`TERYT_TERC`.`WOJ` * 16777216) + (`TERYT_TERC`.`POW` * 65536)) + (`TERYT_TERC`.`GMI` * 256)) + `TERYT_TERC`.`RODZ`) AS `ID`</xs:documentation>
  45. </xs:annotation>
  46. </xs:element>
  47. <xs:element name="ID_TERYT_wojewodztwa" type="xs:int">
  48. <xs:annotation>
  49. <xs:documentation>To samo co WOJ
  50. `TERYT_TERC`.`WOJ` AS `ID_TERYT_wojewodztwa`</xs:documentation>
  51. </xs:annotation>
  52. </xs:element>
  53. <xs:element name="ID_TERYT_powiaty" type="xs:int">
  54. <xs:annotation>
  55. <xs:documentation>((`TERYT_TERC`.`WOJ` * 256) + `TERYT_TERC`.`POW`) AS `ID_TERYT_powiaty`</xs:documentation>
  56. </xs:annotation>
  57. </xs:element>
  58. <xs:element name="WOJ" type="xs:int">
  59. <xs:annotation>
  60. <xs:documentation>`TERYT_TERC`.`WOJ` AS `WOJ`
  61. to samo co ID_TERYT_wojewodztwa</xs:documentation>
  62. </xs:annotation>
  63. </xs:element>
  64. <xs:element ref="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa">
  65. <xs:annotation>
  66. <xs:appinfo>
  67. <system_cache__appinfo:flat_relation_cache>
  68. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
  69. system_cache__appinfo:name="ID_TERYT_wojewodztwa"
  70. system_cache__appinfo:xpath="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/ID">
  71. <!--<fes:Filter>
  72. <fes:PropertyIsEqualTo>
  73. <fes:ValueReference>WOJ</fes:ValueReference>
  74. <fes:ValueReference>default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/WOJ</fes:ValueReference>
  75. </fes:PropertyIsEqualTo>
  76. </fes:Filter>-->
  77. </system_cache__appinfo:source>
  78. </system_cache__appinfo:flat_relation_cache>
  79. </xs:appinfo>
  80. <xs:documentation>Zawsze moze wyskoczyc z wyszukiwania spowrotem na województwa</xs:documentation>
  81. </xs:annotation>
  82. </xs:element>
  83. <xs:element name="POW" type="xs:int"/>
  84. <xs:element ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty">
  85. <xs:annotation>
  86. <xs:appinfo>
  87. <system_cache__appinfo:flat_relation_cache>
  88. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
  89. system_cache__appinfo:name="ID_TERYT_powiaty"
  90. system_cache__appinfo:xpath="default_db__x3A__TERYT_powiaty:TERYT_powiaty/ID">
  91. <!--<fes:Filter>
  92. <fes:And>
  93. <fes:PropertyIsEqualTo>
  94. <fes:ValueReference>WOJ</fes:ValueReference>
  95. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ</fes:ValueReference>
  96. </fes:PropertyIsEqualTo>
  97. <fes:PropertyIsEqualTo>
  98. <fes:ValueReference>POW</fes:ValueReference>
  99. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/POW</fes:ValueReference>
  100. </fes:PropertyIsEqualTo>
  101. </fes:And>
  102. </fes:Filter>-->
  103. </system_cache__appinfo:source>
  104. </system_cache__appinfo:flat_relation_cache>
  105. </xs:appinfo>
  106. <xs:documentation>Zawsze moze wyskoczyc z wyszukiwania spowrotem na powiaty</xs:documentation>
  107. </xs:annotation>
  108. </xs:element>
  109. <xs:element name="GMI" type="xs:int"/>
  110. <xs:element name="NAZWA" type="xs:string"/>
  111. <xs:element maxOccurs="unbounded" minOccurs="1"
  112. ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
  113. <xs:annotation>
  114. <xs:documentation>Przejscue do przegladania miejscowosci z danej gminy</xs:documentation>
  115. </xs:annotation>
  116. </xs:element>
  117. <xs:element ref="default_db__x3A__TERYT_ULIC:TERYT_ULIC" maxOccurs="unbounded"
  118. minOccurs="0">
  119. <xs:annotation>
  120. <xs:documentation>
  121. Variables are specified in WMS GetMap requests by using the env request parameter followed by a list of name:value pairs separated by semicolons:
  122. ...&amp;env=name1:value1;name2=value2&amp;...
  123. <!--<ogc:Function name="env">
  124. <ogc:Literal>size</ogc:Literal>
  125. </ogc:Function>-->
  126. </xs:documentation>
  127. <xs:appinfo>
  128. <system_cache__appinfo:flat_relation_cache>
  129. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  130. <fes:Filter>
  131. <fes:And>
  132. <fes:PropertyIsEqualTo>
  133. <fes:ValueReference>WOJ</fes:ValueReference>
  134. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ</fes:ValueReference>
  135. </fes:PropertyIsEqualTo>
  136. <fes:PropertyIsEqualTo>
  137. <fes:ValueReference>POW</fes:ValueReference>
  138. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/POW</fes:ValueReference>
  139. </fes:PropertyIsEqualTo>
  140. <fes:PropertyIsEqualTo>
  141. <fes:ValueReference>GMI</fes:ValueReference>
  142. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/GMI</fes:ValueReference>
  143. </fes:PropertyIsEqualTo>
  144. </fes:And>
  145. </fes:Filter>
  146. <!--<ogc:Filter>
  147. <ogc:And>
  148. <ogc:PropertyIsEqualTo><ogc:PropertyName>ID</ogc:PropertyName><ogc:Literal>2</ogc:Literal></ogc:PropertyIsEqualTo>
  149. </ogc:And>
  150. </ogc:Filter>-->
  151. </system_cache__appinfo:source>
  152. </system_cache__appinfo:flat_relation_cache>
  153. </xs:appinfo>
  154. </xs:annotation>
  155. </xs:element>
  156. <xs:element maxOccurs="unbounded" minOccurs="0"
  157. ref="default_db__x3A__TERYT_adresy:TERYT_adresy">
  158. <xs:annotation>
  159. <xs:appinfo>
  160. <system_cache__appinfo:flat_relation_cache>
  161. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  162. <fes:Filter>
  163. <fes:PropertyIsEqualTo> <!-- joinuje przez ulice -->
  164. <fes:ValueReference>WOJ</fes:ValueReference>
  165. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ</fes:ValueReference>
  166. </fes:PropertyIsEqualTo>
  167. <fes:PropertyIsEqualTo>
  168. <fes:ValueReference>POW</fes:ValueReference>
  169. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/POW</fes:ValueReference>
  170. </fes:PropertyIsEqualTo>
  171. <fes:PropertyIsEqualTo>
  172. <fes:ValueReference>GMI</fes:ValueReference>
  173. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/GMI</fes:ValueReference>
  174. </fes:PropertyIsEqualTo>
  175. <fes:PropertyIsEqualTo>
  176. <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM</fes:ValueReference>
  177. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  178. </fes:PropertyIsEqualTo>
  179. </fes:Filter>
  180. <!--<fes:Filter><!-\- chyba jest to potrzebne, eby wykluczyc niepotrzebne wyniki -\->
  181. <fes:PropertyIsEqualTo>
  182. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  183. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  184. </fes:PropertyIsEqualTo>
  185. </fes:Filter>-->
  186. </system_cache__appinfo:source>
  187. <!--<system_cache__appinfo:TYPESPECIAL>
  188. <system_cache__appinfo:PARAM_OUT>
  189. <system_cache__appinfo:ALIAS_ID>
  190. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM_UL</fes:ValueReference>
  191. </system_cache__appinfo:ALIAS_ID>
  192. <system_cache__appinfo:DESC>
  193. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_1</fes:ValueReference>
  194. </system_cache__appinfo:DESC>
  195. <system_cache__appinfo:DESC>
  196. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_2</fes:ValueReference>
  197. </system_cache__appinfo:DESC>
  198. <!-\- chyba nie ma sensu tutaj klikac -\->
  199. <system_cache__appinfo:PARAM_IN>
  200. <!-\- tutaj nalezy zapisać wyszukaną ulicę -\->
  201. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  202. </system_cache__appinfo:PARAM_IN>
  203. </system_cache__appinfo:PARAM_OUT>
  204. <!-\-<system_cache__appinfo:PARAM_EXPORT>
  205. <system_cache__appinfo:ALIAS_ID>
  206. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  207. </system_cache__appinfo:ALIAS_ID>
  208. <system_cache__appinfo:DESC>
  209. <fes:ValueReference>SYM_UL</fes:ValueReference>
  210. </system_cache__appinfo:DESC>
  211. </system_cache__appinfo:PARAM_EXPORT>-\->
  212. </system_cache__appinfo:TYPESPECIAL>-->
  213. </system_cache__appinfo:flat_relation_cache>
  214. </xs:appinfo>
  215. <xs:documentation>Wyszukiwanie adresow bedzie tez mozliwe z tego kontekstu.</xs:documentation>
  216. </xs:annotation>
  217. </xs:element>
  218. </xs:sequence>
  219. <xs:attribute name="label" type="xs:string"/>
  220. <xs:assert
  221. test="@label = concat(NAZWA, ' ', default_db__x3A__TERYT_powiaty:TERYT_powiaty/@label, ' ', default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/@label)"/>
  222. <xs:assert test="WOJ = default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ">
  223. <xs:annotation>
  224. <xs:documentation>Szukamy dla tego samego wojewodztwa
  225. (dodatk. zabezp sa na flat_rel_cache)</xs:documentation>
  226. </xs:annotation>
  227. </xs:assert>
  228. <xs:assert test="POW = default_db__x3A__TERYT_ULIC:TERYT_ULIC/POW">
  229. <xs:annotation>
  230. <xs:documentation>taki sam powiat dla szukania</xs:documentation>
  231. </xs:annotation>
  232. </xs:assert>
  233. <xs:assert test="GMI = default_db__x3A__TERYT_ULIC:TERYT_ULIC/GMI">
  234. <xs:annotation>
  235. <xs:documentation>Tylko ulicy z danej gminy w kontekscie szukania</xs:documentation>
  236. </xs:annotation>
  237. </xs:assert>
  238. </xs:complexType>
  239. <xs:element name="TERYT_gminy" type="default_db__x3A__TERYT_gminy:TERYT_gminy"/>
  240. </xs:schema>