TERYT_gminy.xsd 15 KB

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