TERYT_wojewodztwa.xsd 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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_wojewodztwa.xsd"
  7. xmlns:ogc="http://www.opengis.net/ogc" xmlns:fes="http://www.opengis.net/fes/2.0"
  8. vc:minVersion="1.1"
  9. xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
  10. xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.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_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  13. xmlns:default_db__x3A__TERYT_ulice="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd">
  14. <xs:annotation>
  15. <xs:documentation>Bazujace na widoku :
  16. CREATE ALGORITHM=UNDEFINED DEFINER=`bzyk`@`94.158.130.34` SQL SECURITY DEFINER VIEW `TERYT_wojewodztwa`
  17. AS SELECT
  18. `TERYT_TERC`.`WOJ` AS `WOJ`,
  19. `TERYT_TERC`.`NAZWA` AS `NAZWA`
  20. FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` = 0) or isnull(`TERYT_TERC`.`POW`));</xs:documentation>
  21. </xs:annotation>
  22. <xs:import schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"
  23. namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"/>
  24. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
  25. schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
  26. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
  27. schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd"/>
  28. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
  29. schemaLocation="../../default_db.TERYT_ulice/TERYT_ulice/TERYT_ulice.xsd"/>
  30. <xs:complexType name="TERYT_wojewodztwa">
  31. <xs:sequence>
  32. <xs:element name="ID" type="xs:int">
  33. <xs:annotation>
  34. <xs:documentation>to samo `TERYT_TERC`.`WOJ` AS `ID`,
  35. `TERYT_TERC`.`WOJ` AS `WOJ`,</xs:documentation>
  36. </xs:annotation>
  37. </xs:element>
  38. <xs:element name="WOJ" type="xs:int">
  39. <xs:annotation>
  40. <xs:documentation>to samo `TERYT_TERC`.`WOJ` AS `ID`,
  41. `TERYT_TERC`.`WOJ` AS `WOJ`,</xs:documentation>
  42. </xs:annotation>
  43. </xs:element>
  44. <xs:element name="NAZWA" type="xs:string"/>
  45. <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty"
  46. minOccurs="0">
  47. <xs:annotation>
  48. <xs:appinfo>
  49. <system_cache__appinfo:flat_relation_cache>
  50. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__TERYT_powiaty:TERYT_powiaty/ID_TERYT_wojewodztwa">
  51. <!--<fes:Filter>
  52. <fes:PropertyIsEqualTo>
  53. <fes:ValueReference>WOJ</fes:ValueReference>
  54. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ</fes:ValueReference>
  55. </fes:PropertyIsEqualTo>
  56. </fes:Filter>-->
  57. </system_cache__appinfo:source>
  58. </system_cache__appinfo:flat_relation_cache>
  59. </xs:appinfo>
  60. <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do wojewodztwa</xs:documentation>
  61. </xs:annotation>
  62. </xs:element>
  63. <xs:element maxOccurs="unbounded" minOccurs="0"
  64. ref="default_db__x3A__TERYT_gminy:TERYT_gminy">
  65. <xs:annotation>
  66. <xs:appinfo>
  67. <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
  68. <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__TERYT_gminy:TERYT_gminy/ID_TERYT_wojewodztwa">
  69. <!--<fes:Filter>
  70. <fes:And>
  71. <fes:PropertyIsEqualTo>
  72. <fes:ValueReference>WOJ</fes:ValueReference>
  73. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/WOJ</fes:ValueReference>
  74. </fes:PropertyIsEqualTo>
  75. <fes:PropertyIsEqualTo>
  76. <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/POW</fes:ValueReference>
  77. <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/POW</fes:ValueReference>
  78. </fes:PropertyIsEqualTo>
  79. </fes:And>
  80. </fes:Filter>-->
  81. </system_cache__appinfo:source>
  82. </system_cache__appinfo:flat_relation_cache>
  83. </xs:appinfo>
  84. <xs:documentation>Przejście do gminy wymagać będzie skomplikowanego 3 stronnego joina.
  85. 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?
  86. Moze lepiej nie dawac takich dodatkowych skrotow do grupowania - lepiej liczyc na tozsamosc w silniku agregujaca docelowo?
  87. </xs:documentation>
  88. </xs:annotation>
  89. </xs:element>
  90. <!--<xs:element maxOccurs="unbounded" minOccurs="1"
  91. ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
  92. <xs:annotation>
  93. <xs:appinfo>
  94. <system_cache__appinfo:flat_relation_cache>
  95. <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"/>
  96. </system_cache__appinfo:flat_relation_cache>
  97. <!-\-<system_cache__appinfo:flat_relation_cache>
  98. <fes:Filter>
  99. <fes:PropertyIsEqualTo>
  100. <fes:ValueReference>WOJ</fes:ValueReference>
  101. <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/WOJ</fes:ValueReference>
  102. </fes:PropertyIsEqualTo>
  103. </fes:Filter>
  104. </system_cache__appinfo:flat_relation_cache>-\->
  105. </xs:appinfo>
  106. <xs:documentation>Zawsze powinno się móc przeskoczyć do bazy SIMC z ograniczonym filtrem</xs:documentation>
  107. </xs:annotation>
  108. </xs:element>-->
  109. <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_ulice:TERYT_ulice">
  110. <xs:annotation>
  111. <xs:appinfo>
  112. <system_cache__appinfo:flat_relation_cache>
  113. <system_cache__appinfo:flat_relation_cache>
  114. <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ"/>
  115. </system_cache__appinfo:flat_relation_cache>
  116. <!--<system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
  117. <fes:Filter>
  118. <fes:PropertyIsEqualTo>
  119. <fes:ValueReference>WOJ</fes:ValueReference>
  120. <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ</fes:ValueReference>
  121. </fes:PropertyIsEqualTo>
  122. </fes:Filter>
  123. </system_cache__appinfo:source>-->
  124. </system_cache__appinfo:flat_relation_cache>
  125. </xs:appinfo>
  126. <xs:documentation>Opchja szukania ulic w kontekscie do Wojewodztwa</xs:documentation>
  127. </xs:annotation>
  128. </xs:element>
  129. </xs:sequence>
  130. <xs:attribute name="label" type="xs:string"/>
  131. <xs:assert test="@label = NAZWA"/>
  132. <xs:assert test="WOJ = default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ">
  133. <xs:annotation>
  134. <xs:documentation>Zaopisanie sposobu joina do przegladania danych</xs:documentation>
  135. </xs:annotation>
  136. </xs:assert>
  137. </xs:complexType>
  138. <xs:element name="TERYT_wojewodztwa" type="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa"
  139. > </xs:element>
  140. </xs:schema>