TERYT_gminy.xsd 13 KB

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