TERYT_ulice.xsd 14 KB

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