TERYT_ULIC.xsd 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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_ULIC.xsd"
  7. vc:minVersion="1.1"
  8. xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
  9. xmlns:ogc="http://www.opengis.net/ogc" xmlns:fes="http://www.opengis.net/fes/2.0"
  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_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  12. xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  13. xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
  14. xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd">
  15. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  16. schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd">
  17. <xs:annotation>
  18. <xs:documentation>Powinno sie dac wyjsc z ulic do gmin aby szukac w kolko</xs:documentation>
  19. </xs:annotation>
  20. </xs:import>
  21. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  22. schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
  23. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  24. schemaLocation="../../default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd"/>
  25. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
  26. schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd">
  27. <xs:annotation>
  28. <xs:documentation>Tutaj będizemy mogli zawsze dorzycić swoje dane (dorzucić swoje dane adresowe)
  29. Będzie konieczna akcja powrotu do samego początu chodzenia, aby mieć kontekst wyzwolenia - jeżeli od razu zaczął od TERYT_adresy? Ale mógł zacząć dopisywać adres z zupełnie innego miejsca - np iść od Województw</xs:documentation>
  30. </xs:annotation>
  31. </xs:import>
  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:complexType name="TERYT_ULIC">
  35. <xs:sequence>
  36. <xs:element name="WOJ" type="xs:int"/>
  37. <xs:element ref="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa">
  38. <xs:annotation>
  39. <xs:appinfo>
  40. <system_cache__appinfo:flat_relation_cache>
  41. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  42. <fes:Filter>
  43. <fes:PropertyIsEqualTo>
  44. <fes:ValueReference>WOJ</fes:ValueReference>
  45. <fes:ValueReference>default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/WOJ</fes:ValueReference>
  46. </fes:PropertyIsEqualTo>
  47. </fes:Filter>
  48. </system_cache__appinfo:source>
  49. </system_cache__appinfo:flat_relation_cache>
  50. </xs:appinfo>
  51. <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do wojewodztwa</xs:documentation>
  52. </xs:annotation>
  53. </xs:element>
  54. <xs:element name="POW" type="xs:int"/>
  55. <xs:element ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty">
  56. <xs:annotation>
  57. <xs:appinfo>
  58. <system_cache__appinfo:flat_relation_cache>
  59. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  60. <fes:Filter>
  61. <fes:And>
  62. <fes:PropertyIsEqualTo>
  63. <fes:ValueReference>WOJ</fes:ValueReference>
  64. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ</fes:ValueReference>
  65. </fes:PropertyIsEqualTo>
  66. <fes:PropertyIsEqualTo>
  67. <fes:ValueReference>POW</fes:ValueReference>
  68. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/POW</fes:ValueReference>
  69. </fes:PropertyIsEqualTo>
  70. </fes:And>
  71. </fes:Filter>
  72. </system_cache__appinfo:source>
  73. </system_cache__appinfo:flat_relation_cache>
  74. </xs:appinfo>
  75. <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do powiatu</xs:documentation>
  76. </xs:annotation>
  77. </xs:element>
  78. <xs:element name="GMI" type="xs:int"/>
  79. <xs:element ref="default_db__x3A__TERYT_gminy:TERYT_gminy" minOccurs="0">
  80. <xs:annotation>
  81. <xs:appinfo>
  82. <system_cache__appinfo:flat_relation_cache>
  83. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  84. <fes:Filter>
  85. <fes:And>
  86. <fes:PropertyIsEqualTo>
  87. <fes:ValueReference>WOJ</fes:ValueReference>
  88. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/WOJ</fes:ValueReference>
  89. </fes:PropertyIsEqualTo>
  90. <fes:PropertyIsEqualTo>
  91. <fes:ValueReference>POW</fes:ValueReference>
  92. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/POW</fes:ValueReference>
  93. </fes:PropertyIsEqualTo>
  94. <fes:PropertyIsEqualTo>
  95. <fes:ValueReference>v</fes:ValueReference>
  96. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/GMI</fes:ValueReference>
  97. </fes:PropertyIsEqualTo>
  98. </fes:And>
  99. </fes:Filter>
  100. </system_cache__appinfo:source>
  101. </system_cache__appinfo:flat_relation_cache>
  102. </xs:appinfo>
  103. <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do gminy</xs:documentation>
  104. </xs:annotation>
  105. </xs:element>
  106. <xs:element name="RODZ_GMI" type="xs:int"/>
  107. <xs:element name="SYM" type="xs:int"/>
  108. <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
  109. <xs:annotation>
  110. <xs:appinfo>
  111. <system_cache__appinfo:flat_relation_cache>
  112. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  113. <fes:Filter>
  114. <fes:And>
  115. <fes:PropertyIsEqualTo>
  116. <fes:ValueReference>WOJ</fes:ValueReference>
  117. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/WOJ</fes:ValueReference>
  118. </fes:PropertyIsEqualTo>
  119. <fes:PropertyIsEqualTo>
  120. <fes:ValueReference>POW</fes:ValueReference>
  121. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/POW</fes:ValueReference>
  122. </fes:PropertyIsEqualTo>
  123. <fes:PropertyIsEqualTo>
  124. <fes:ValueReference>SYM</fes:ValueReference>
  125. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/SYM</fes:ValueReference>
  126. </fes:PropertyIsEqualTo>
  127. </fes:And>
  128. </fes:Filter>
  129. </system_cache__appinfo:source>
  130. <!--<system_cache__appinfo:TYPESPECIAL>
  131. <system_cache__appinfo:PARAM_EXPORT>
  132. <system_cache__appinfo:ALIAS_ID>
  133. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  134. </system_cache__appinfo:ALIAS_ID>
  135. <system_cache__appinfo:DESC>
  136. <fes:ValueReference>SYM</fes:ValueReference>
  137. </system_cache__appinfo:DESC>
  138. </system_cache__appinfo:PARAM_EXPORT>
  139. <system_cache__appinfo:PARAM_EXPORT>
  140. <system_cache__appinfo:ALIAS_ID>
  141. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  142. </system_cache__appinfo:ALIAS_ID>
  143. <system_cache__appinfo:DESC>
  144. <fes:ValueReference>SYM_UL</fes:ValueReference>
  145. </system_cache__appinfo:DESC>
  146. </system_cache__appinfo:PARAM_EXPORT>
  147. </system_cache__appinfo:TYPESPECIAL>-->
  148. </system_cache__appinfo:flat_relation_cache>
  149. </xs:appinfo>
  150. <xs:documentation> Z ulic powinno sie przejsc na SIMC i widziec wyszukane konteksty </xs:documentation>
  151. </xs:annotation>
  152. </xs:element>
  153. <xs:element name="SYM_UL" type="xs:int"/>
  154. <xs:element name="CECHA" type="xs:string"/>
  155. <xs:element name="NAZWA_1" type="xs:string"/>
  156. <xs:element name="NAZWA_2" type="xs:string"/>
  157. <xs:element name="STAN_NA" type="xs:date"/>
  158. <xs:element ref="default_db__x3A__TERYT_adresy:TERYT_adresy">
  159. <xs:annotation>
  160. <xs:appinfo>
  161. <system_cache__appinfo:flat_relation_cache>
  162. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  163. <fes:Filter>
  164. <fes:And>
  165. <fes:PropertyIsEqualTo>
  166. <fes:ValueReference>WOJ</fes:ValueReference>
  167. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/WOJ</fes:ValueReference>
  168. </fes:PropertyIsEqualTo>
  169. <fes:PropertyIsEqualTo>
  170. <fes:ValueReference>POW</fes:ValueReference>
  171. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/POW</fes:ValueReference>
  172. </fes:PropertyIsEqualTo>
  173. <fes:PropertyIsEqualTo>
  174. <fes:ValueReference>GMI</fes:ValueReference>
  175. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/GMI</fes:ValueReference>
  176. </fes:PropertyIsEqualTo>
  177. </fes:And>
  178. </fes:Filter>
  179. </system_cache__appinfo:source>
  180. <system_cache__appinfo:TYPESPECIAL>
  181. <system_cache__appinfo:PARAM_EXPORT>
  182. <system_cache__appinfo:ALIAS_ID>
  183. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  184. </system_cache__appinfo:ALIAS_ID>
  185. <system_cache__appinfo:DESC>
  186. <fes:ValueReference>SYM</fes:ValueReference>
  187. </system_cache__appinfo:DESC>
  188. </system_cache__appinfo:PARAM_EXPORT>
  189. <system_cache__appinfo:PARAM_EXPORT>
  190. <system_cache__appinfo:ALIAS_ID>
  191. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  192. </system_cache__appinfo:ALIAS_ID>
  193. <system_cache__appinfo:DESC>
  194. <fes:ValueReference>SYM_UL</fes:ValueReference>
  195. </system_cache__appinfo:DESC>
  196. </system_cache__appinfo:PARAM_EXPORT>
  197. </system_cache__appinfo:TYPESPECIAL>
  198. </system_cache__appinfo:flat_relation_cache>
  199. </xs:appinfo>
  200. <xs:documentation>W każdej chwili powinno być dostępne wejście do adresów w kontekście wybbranych parametrów wyszikiwania,
  201. aby móc dopisać wyszukiwanie i z niego odziedziczyć wpisanie na bazie asserts? (pushujemy) - relacje są na podstawie widoków przecież.
  202. </xs:documentation>
  203. </xs:annotation>
  204. </xs:element>
  205. </xs:sequence>
  206. <xs:attribute name="label" type="xs:string"/>
  207. <xs:assert
  208. test="@label = concat(CECHA, ' ', NAZWA_1, ' ', NAZWA_2, default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/@label, ' ', default_db__x3A__TERYT_powiaty:TERYT_powiaty/@label, ' ', default_db__x3A__TERYT_gminy:TERYT_gminy/GMI/@label)"
  209. />
  210. </xs:complexType>
  211. <xs:element name="TERYT_ULIC" type="default_db__x3A__TERYT_ULIC:TERYT_ULIC"/>
  212. </xs:schema>