TERYT_wojewodztwa.xsd 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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:ogc="http://www.opengis.net/ogc"
  5. xmlns:fes="http://www.opengis.net/fes/2.0"
  6. xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  7. xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  8. xmlns:default_db__x3A__TERYT_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  9. xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  10. xmlns:default_db__x3A__TERYT_ulice="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
  11. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  13. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  14. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  15. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  16. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  17. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  18. xmlns:ant-object="http://biuro.biall-net.pl/xmlschema_procesy5/ant-object/ant-object.xsd"
  19. xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
  20. targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
  21. vc:minVersion="1.1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  22. <xs:annotation>
  23. <xs:documentation>Bazujace na widoku :
  24. CREATE ALGORITHM=UNDEFINED DEFINER=`bzyk`@`94.158.130.34` SQL SECURITY DEFINER VIEW `TERYT_wojewodztwa`
  25. AS SELECT
  26. `TERYT_TERC`.`WOJ` AS `WOJ`,
  27. `TERYT_TERC`.`NAZWA` AS `NAZWA`
  28. FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` = 0) or isnull(`TERYT_TERC`.`POW`));</xs:documentation>
  29. </xs:annotation>
  30. <xs:import schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"
  31. namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.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_gminy.xsd"
  35. schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd"/>
  36. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
  37. schemaLocation="../../default_db.TERYT_ulice/TERYT_ulice/TERYT_ulice.xsd"/>
  38. <xs:complexType name="TERYT_wojewodztwa" id="wojewodztwa___d18e54644-1_TERYT_woje">
  39. <xs:sequence id="wojewodztwa___d18e54645-1">
  40. <xs:element name="ID" type="xs:int" id="wojewodztwa___d18e54646-1_ID"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  41. <xs:annotation>
  42. <xs:documentation>to samo `TERYT_TERC`.`WOJ` AS `ID`,
  43. `TERYT_TERC`.`WOJ` AS `WOJ`,</xs:documentation>
  44. </xs:annotation>
  45. </xs:element>
  46. <xs:element name="WOJ" type="xs:int" id="wojewodztwa___d18e54650-1_WOJ"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  47. <xs:annotation>
  48. <xs:documentation>to samo `TERYT_TERC`.`WOJ` AS `ID`,
  49. `TERYT_TERC`.`WOJ` AS `WOJ`,</xs:documentation>
  50. </xs:annotation>
  51. </xs:element>
  52. <xs:element name="NAZWA" type="xs:string" id="wojewodztwa___d18e54654-1_NAZWA"/>
  53. <xs:element maxOccurs="unbounded"
  54. ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty"
  55. minOccurs="0"
  56. id="wojewodztwa___d18e54655-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  57. <xs:annotation>
  58. <xs:appinfo>
  59. <system_cache__appinfo:flat_relation_cache>
  60. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
  61. system_cache__appinfo:name="ID"
  62. system_cache__appinfo:xpath="default_db__x3A__TERYT_powiaty:TERYT_powiaty/ID_TERYT_wojewodztwa"><!--<fes:Filter>
  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:Filter>--></system_cache__appinfo:source>
  68. </system_cache__appinfo:flat_relation_cache>
  69. </xs:appinfo>
  70. <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do wojewodztwa</xs:documentation>
  71. </xs:annotation>
  72. </xs:element>
  73. <xs:element maxOccurs="unbounded"
  74. minOccurs="0"
  75. ref="default_db__x3A__TERYT_gminy:TERYT_gminy"
  76. id="wojewodztwa___d18e54663-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  77. <xs:annotation>
  78. <xs:appinfo>
  79. <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
  80. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
  81. system_cache__appinfo:name="ID"
  82. system_cache__appinfo:xpath="default_db__x3A__TERYT_gminy:TERYT_gminy/ID_TERYT_wojewodztwa"><!--<fes:Filter>
  83. <fes:And>
  84. <fes:PropertyIsEqualTo>
  85. <fes:ValueReference>WOJ</fes:ValueReference>
  86. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/WOJ</fes:ValueReference>
  87. </fes:PropertyIsEqualTo>
  88. <fes:PropertyIsEqualTo>
  89. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/POW</fes:ValueReference>
  90. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/POW</fes:ValueReference>
  91. </fes:PropertyIsEqualTo>
  92. </fes:And>
  93. </fes:Filter>--></system_cache__appinfo:source>
  94. </system_cache__appinfo:flat_relation_cache>
  95. </xs:appinfo>
  96. <xs:documentation>Przejście do gminy wymagać będzie skomplikowanego 3 stronnego joina.
  97. Backref evaluate - dla tego, ze ten przeskok jest dodatkowy - powinno isc normalnie przez powiaty najpierw - to jest krot - wiec zaznaczam jako backref evaluate? Czy to dobra zaleznosc?
  98. Moze lepiej nie dawac takich dodatkowych skrotow do grupowania - lepiej liczyc na tozsamosc w silniku agregujaca docelowo?
  99. </xs:documentation>
  100. </xs:annotation>
  101. </xs:element>
  102. <!--<xs:element maxOccurs="unbounded" minOccurs="1"
  103. ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
  104. <xs:annotation>
  105. <xs:appinfo>
  106. <system_cache__appinfo:flat_relation_cache>
  107. <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_SIMC:TERYT_SIMC/WOJ"/>
  108. </system_cache__appinfo:flat_relation_cache>
  109. <!-\-<system_cache__appinfo:flat_relation_cache>
  110. <fes:Filter>
  111. <fes:PropertyIsEqualTo>
  112. <fes:ValueReference>WOJ</fes:ValueReference>
  113. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/WOJ</fes:ValueReference>
  114. </fes:PropertyIsEqualTo>
  115. </fes:Filter>
  116. </system_cache__appinfo:flat_relation_cache>-\->
  117. </xs:appinfo>
  118. <xs:documentation>Zawsze powinno się móc przeskoczyć do bazy SIMC z ograniczonym filtrem</xs:documentation>
  119. </xs:annotation>
  120. </xs:element>-->
  121. <xs:element maxOccurs="unbounded"
  122. ref="default_db__x3A__TERYT_ulice:TERYT_ulice"
  123. id="wojewodztwa___d18e54672-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  124. <xs:annotation>
  125. <xs:appinfo>
  126. <system_cache__appinfo:flat_relation_cache>
  127. <system_cache__appinfo:flat_relation_cache>
  128. <system_cache__appinfo:source system_cache__appinfo:name="ID"
  129. system_cache__appinfo:ref_engine="view"
  130. system_cache__appinfo:xpath="default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ"/>
  131. </system_cache__appinfo:flat_relation_cache>
  132. <!--<system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  133. <fes:Filter>
  134. <fes:PropertyIsEqualTo>
  135. <fes:ValueReference>WOJ</fes:ValueReference>
  136. <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ</fes:ValueReference>
  137. </fes:PropertyIsEqualTo>
  138. </fes:Filter>
  139. </system_cache__appinfo:source>-->
  140. </system_cache__appinfo:flat_relation_cache>
  141. </xs:appinfo>
  142. <xs:documentation>Opchja szukania ulic w kontekscie do Wojewodztwa</xs:documentation>
  143. </xs:annotation>
  144. </xs:element>
  145. </xs:sequence>
  146. <xs:attribute name="label" type="xs:string" id="wojewodztwa___d18e54681-1_label"/>
  147. <xs:assert test="@label = NAZWA" id="wojewodztwa___d18e54682-1"/>
  148. <xs:assert test="WOJ = default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ"
  149. id="wojewodztwa___d18e54683-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
  150. <xs:annotation>
  151. <xs:documentation>Zaopisanie sposobu joina do przegladania danych</xs:documentation>
  152. </xs:annotation>
  153. </xs:assert>
  154. </xs:complexType>
  155. <xs:element name="TERYT_wojewodztwa"
  156. type="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa"
  157. id="wojewodztwa___d18e54687-1_TERYT_woje"/>
  158. </xs:schema>