TERYT_ULIC.xsd 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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" system_cache__appinfo:primaryKey="SYM_UL">
  35. <xs:annotation>
  36. <xs:documentation>TODO bledne system_cache__appinfo:primaryKey="SYM_UL" - to nie jest klucz! inaczej error na schema</xs:documentation>
  37. </xs:annotation>
  38. <xs:sequence>
  39. <xs:element name="WOJ" type="xs:int"/>
  40. <xs:element ref="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa">
  41. <xs:annotation>
  42. <xs:appinfo>
  43. <system_cache__appinfo:flat_relation_cache>
  44. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  45. <fes:Filter>
  46. <fes:PropertyIsEqualTo>
  47. <fes:ValueReference>WOJ</fes:ValueReference>
  48. <fes:ValueReference>default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/WOJ</fes:ValueReference>
  49. </fes:PropertyIsEqualTo>
  50. </fes:Filter>
  51. </system_cache__appinfo:source>
  52. </system_cache__appinfo:flat_relation_cache>
  53. </xs:appinfo>
  54. <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do wojewodztwa</xs:documentation>
  55. </xs:annotation>
  56. </xs:element>
  57. <xs:element name="POW" type="xs:int"/>
  58. <xs:element ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty">
  59. <xs:annotation>
  60. <xs:appinfo>
  61. <system_cache__appinfo:flat_relation_cache>
  62. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  63. <fes:Filter>
  64. <fes:And>
  65. <fes:PropertyIsEqualTo>
  66. <fes:ValueReference>WOJ</fes:ValueReference>
  67. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ</fes:ValueReference>
  68. </fes:PropertyIsEqualTo>
  69. <fes:PropertyIsEqualTo>
  70. <fes:ValueReference>POW</fes:ValueReference>
  71. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/POW</fes:ValueReference>
  72. </fes:PropertyIsEqualTo>
  73. </fes:And>
  74. </fes:Filter>
  75. </system_cache__appinfo:source>
  76. </system_cache__appinfo:flat_relation_cache>
  77. </xs:appinfo>
  78. <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do powiatu</xs:documentation>
  79. </xs:annotation>
  80. </xs:element>
  81. <xs:element name="GMI" type="xs:int"/>
  82. <xs:element ref="default_db__x3A__TERYT_gminy:TERYT_gminy" minOccurs="0">
  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. <fes:Filter>
  88. <fes:And>
  89. <fes:PropertyIsEqualTo>
  90. <fes:ValueReference>WOJ</fes:ValueReference>
  91. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/WOJ</fes:ValueReference>
  92. </fes:PropertyIsEqualTo>
  93. <fes:PropertyIsEqualTo>
  94. <fes:ValueReference>POW</fes:ValueReference>
  95. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/POW</fes:ValueReference>
  96. </fes:PropertyIsEqualTo>
  97. <fes:PropertyIsEqualTo>
  98. <fes:ValueReference>v</fes:ValueReference>
  99. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/GMI</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>Z każdej jednej ulicy powinno się dać wyjść do gminy</xs:documentation>
  107. </xs:annotation>
  108. </xs:element>
  109. <xs:element name="RODZ_GMI" type="xs:int"/>
  110. <xs:element name="SYM" type="xs:int"/>
  111. <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
  112. <xs:annotation>
  113. <xs:appinfo>
  114. <system_cache__appinfo:flat_relation_cache>
  115. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  116. <fes:Filter>
  117. <fes:And>
  118. <fes:PropertyIsEqualTo>
  119. <fes:ValueReference>WOJ</fes:ValueReference>
  120. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/WOJ</fes:ValueReference>
  121. </fes:PropertyIsEqualTo>
  122. <fes:PropertyIsEqualTo>
  123. <fes:ValueReference>POW</fes:ValueReference>
  124. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/POW</fes:ValueReference>
  125. </fes:PropertyIsEqualTo>
  126. <fes:PropertyIsEqualTo>
  127. <fes:ValueReference>SYM</fes:ValueReference>
  128. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/SYM</fes:ValueReference>
  129. </fes:PropertyIsEqualTo>
  130. </fes:And>
  131. </fes:Filter>
  132. </system_cache__appinfo:source>
  133. <!--<system_cache__appinfo:TYPESPECIAL>
  134. <system_cache__appinfo:PARAM_EXPORT>
  135. <system_cache__appinfo:ALIAS_ID>
  136. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  137. </system_cache__appinfo:ALIAS_ID>
  138. <system_cache__appinfo:DESC>
  139. <fes:ValueReference>SYM</fes:ValueReference>
  140. </system_cache__appinfo:DESC>
  141. </system_cache__appinfo:PARAM_EXPORT>
  142. <system_cache__appinfo:PARAM_EXPORT>
  143. <system_cache__appinfo:ALIAS_ID>
  144. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  145. </system_cache__appinfo:ALIAS_ID>
  146. <system_cache__appinfo:DESC>
  147. <fes:ValueReference>SYM_UL</fes:ValueReference>
  148. </system_cache__appinfo:DESC>
  149. </system_cache__appinfo:PARAM_EXPORT>
  150. </system_cache__appinfo:TYPESPECIAL>-->
  151. </system_cache__appinfo:flat_relation_cache>
  152. </xs:appinfo>
  153. <xs:documentation> Z ulic powinno sie przejsc na SIMC i widziec wyszukane konteksty </xs:documentation>
  154. </xs:annotation>
  155. </xs:element>
  156. <xs:element name="SYM_UL" type="xs:int"/>
  157. <xs:element name="CECHA" type="xs:string"/>
  158. <xs:element name="NAZWA_1" type="xs:string"/>
  159. <xs:element name="NAZWA_2" type="xs:string"/>
  160. <xs:element name="STAN_NA" type="xs:date"/>
  161. <xs:element ref="default_db__x3A__TERYT_adresy:TERYT_adresy">
  162. <xs:annotation>
  163. <xs:appinfo>
  164. <system_cache__appinfo:flat_relation_cache>
  165. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  166. <fes:Filter>
  167. <fes:And>
  168. <fes:PropertyIsEqualTo>
  169. <fes:ValueReference>WOJ</fes:ValueReference>
  170. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/WOJ</fes:ValueReference>
  171. </fes:PropertyIsEqualTo>
  172. <fes:PropertyIsEqualTo>
  173. <fes:ValueReference>POW</fes:ValueReference>
  174. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/POW</fes:ValueReference>
  175. </fes:PropertyIsEqualTo>
  176. <fes:PropertyIsEqualTo>
  177. <fes:ValueReference>GMI</fes:ValueReference>
  178. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/GMI</fes:ValueReference>
  179. </fes:PropertyIsEqualTo>
  180. </fes:And>
  181. </fes:Filter>
  182. </system_cache__appinfo:source>
  183. <system_cache__appinfo:TYPESPECIAL>
  184. <system_cache__appinfo:PARAM_EXPORT>
  185. <system_cache__appinfo:ALIAS_ID>
  186. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
  187. </system_cache__appinfo:ALIAS_ID>
  188. <system_cache__appinfo:DESC>
  189. <fes:ValueReference>SYM</fes:ValueReference>
  190. </system_cache__appinfo:DESC>
  191. </system_cache__appinfo:PARAM_EXPORT>
  192. <system_cache__appinfo:PARAM_EXPORT>
  193. <system_cache__appinfo:ALIAS_ID>
  194. <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
  195. </system_cache__appinfo:ALIAS_ID>
  196. <system_cache__appinfo:DESC>
  197. <fes:ValueReference>SYM_UL</fes:ValueReference>
  198. </system_cache__appinfo:DESC>
  199. </system_cache__appinfo:PARAM_EXPORT>
  200. </system_cache__appinfo:TYPESPECIAL>
  201. </system_cache__appinfo:flat_relation_cache>
  202. </xs:appinfo>
  203. <xs:documentation>W każdej chwili powinno być dostępne wejście do adresów w kontekście wybbranych parametrów wyszikiwania,
  204. aby móc dopisać wyszukiwanie i z niego odziedziczyć wpisanie na bazie asserts? (pushujemy) - relacje są na podstawie widoków przecież.
  205. </xs:documentation>
  206. </xs:annotation>
  207. </xs:element>
  208. </xs:sequence>
  209. <xs:attribute name="label" type="xs:string"/>
  210. <xs:assert
  211. 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)"
  212. />
  213. </xs:complexType>
  214. <xs:element name="TERYT_ULIC" type="default_db__x3A__TERYT_ULIC:TERYT_ULIC"/>
  215. </xs:schema>