浏览代码

+ fix na TERYT_ulice - rem TERC

a.binder 8 年之前
父节点
当前提交
3f2356cb19

+ 0 - 0
SE/schema/ant-object/default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd → SE/schema/ant-object/default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd.disabled


+ 0 - 0
SE/schema/ant-object/default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd → SE/schema/ant-object/default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd.disabled


+ 0 - 0
SE/schema/ant-object/default_db.TERYT_ULIC/TERYT_ULIC/build.xml


+ 9 - 15
SE/schema/ant-object/default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd

@@ -17,7 +17,7 @@
    xmlns:default_db__x3A__BI_audit_MSIG_address="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_MSIG_address.xsd"
    xmlns:default_db__x3A__BI_audit_operational_raport_note="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_operational_raport_note.xsd"
    xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
-   xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd">
+   xmlns:default_db__x3A__TERYT_ulice="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd">
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_CEIDG.xsd"
       schemaLocation="../../default_db.BI_audit_CEIDG/BI_audit_CEIDG/BI_audit_CEIDG.xsd"/>
    <xs:import
@@ -41,14 +41,8 @@
    <xs:import
       namespace="https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_operational_raport_note.xsd"
       schemaLocation="../../default_db.BI_audit_operational_raport_note/BI_audit_operational_raport_note/BI_audit_operational_raport_note.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
-      schemaLocation="../../default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd">
-      <xs:annotation>
-         <xs:documentation>2018-03-07 TODO czy to dobra relacja aby pokazac nazwe miejscowosci dla @labeli?</xs:documentation>
-      </xs:annotation>
-   </xs:import>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
-      schemaLocation="../../default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
+      schemaLocation="../../default_db.TERYT_ulice/TERYT_ulice/TERYT_ulice.xsd"/>
    <xs:complexType name="TERYT_adresy">
       <xs:sequence>
          <xs:element name="ID" type="xs:int"/>
@@ -84,7 +78,7 @@
                <xs:documentation>Relacja na bazie widoku oznaczajaca, ze dany obiekt byl badany poprzez raport operacyjny. Dla potrzeb generowania raportu i pokazania danych operacyjnego raportu</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
+         <!--<xs:element ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
@@ -95,19 +89,19 @@
                   bindera: dodałem
                </xs:documentation>
             </xs:annotation>
-         </xs:element>
-         <xs:element ref="default_db__x3A__TERYT_ULIC:TERYT_ULIC">
+         </xs:element>-->
+         <xs:element ref="default_db__x3A__TERYT_ulice:TERYT_ulice">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="TERYT_SYM_UL" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM_UL"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="TERYT_SYM_UL" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_ulice:TERYT_ulice/SYM_UL"/>
                      <system_cache__appinfo:TYPESPECIAL>
                         <system_cache__appinfo:PARAM_EXPORT>
                            <system_cache__appinfo:ALIAS_ID>
                               <fes:ValueReference>TERYT_SYM_UL</fes:ValueReference>
                            </system_cache__appinfo:ALIAS_ID>
                            <system_cache__appinfo:DESC>
-                              <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM_UL</fes:ValueReference>
+                              <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/SYM_UL</fes:ValueReference>
                            </system_cache__appinfo:DESC>
                         </system_cache__appinfo:PARAM_EXPORT>
                         <system_cache__appinfo:PARAM_EXPORT>
@@ -129,7 +123,7 @@
       </xs:sequence>
       <xs:attribute name="label" type="xs:string"/>
       <xs:assert
-         test="@label = concat(default_db__x3A__TERYT_SIMC:TERYT_SIMC/@label, ' ', default_db__x3A__TERYT_ULIC:TERYT_ULIC/@label, ' ', nrDomu, ' ', nrLokalu)"
+         test="@label = concat(default_db__x3A__TERYT_ulice:TERYT_ulice/@label, ' ', nrDomu, ' ', nrLokalu)"
       />
    </xs:complexType>
    <xs:element name="TERYT_adresy" type="default_db__x3A__TERYT_adresy:TERYT_adresy"/>

+ 20 - 21
SE/schema/ant-object/default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd

@@ -10,7 +10,7 @@
    xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
    xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
    xmlns:ogc="http://www.opengis.net/ogc" xmlns:fes="http://www.opengis.net/fes/2.0"
-   xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
+   xmlns:default_db__x3A__TERYT_ulice="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
    xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd">
    <xs:annotation>
       <xs:documentation>CREATE ALGORITHM=UNDEFINED DEFINER=`bzyk`@`94.158.130.34` SQL SECURITY DEFINER VIEW `TERYT_gminy`
@@ -27,14 +27,13 @@ FROM `TERYT_TERC` where (`TERYT_TERC`.`GMI` is not null);</xs:documentation>
    </xs:annotation>
    <xs:import schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"
       namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
-      schemaLocation="../../default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
+      schemaLocation="../../default_db.TERYT_ulice/TERYT_ulice/TERYT_ulice.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
       schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
       schemaLocation="../../default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
-      schemaLocation="../../default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd"/>
+   
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
       schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"/>
    <xs:complexType name="TERYT_gminy">
@@ -108,13 +107,13 @@ to samo co ID_TERYT_wojewodztwa</xs:documentation>
          </xs:element>
          <xs:element name="GMI" type="xs:int"/>
          <xs:element name="NAZWA" type="xs:string"/>
-         <xs:element maxOccurs="unbounded" minOccurs="1"
+         <!--<xs:element maxOccurs="unbounded" minOccurs="1"
             ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
             <xs:annotation>
                <xs:documentation>Przejscue do przegladania miejscowosci z danej gminy</xs:documentation>
             </xs:annotation>
-         </xs:element>
-         <xs:element ref="default_db__x3A__TERYT_ULIC:TERYT_ULIC" maxOccurs="unbounded"
+         </xs:element>-->
+         <xs:element ref="default_db__x3A__TERYT_ulice:TERYT_ulice" maxOccurs="unbounded"
             minOccurs="0">
             <xs:annotation>
                <xs:documentation>
@@ -131,15 +130,15 @@ to samo co ID_TERYT_wojewodztwa</xs:documentation>
                            <fes:And>
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>WOJ</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>POW</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/POW</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/POW</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>GMI</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/GMI</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/GMI</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                            </fes:And>
                         </fes:Filter>
@@ -162,18 +161,18 @@ to samo co ID_TERYT_wojewodztwa</xs:documentation>
                            <fes:Filter>
                               <fes:PropertyIsEqualTo> <!-- joinuje przez ulice -->
                                  <fes:ValueReference>WOJ</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>POW</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/POW</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/POW</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>GMI</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/GMI</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/GMI</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                               <fes:PropertyIsEqualTo>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/SYM</fes:ValueReference>
                                  <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                            </fes:Filter>
@@ -187,13 +186,13 @@ to samo co ID_TERYT_wojewodztwa</xs:documentation>
                         <!--<system_cache__appinfo:TYPESPECIAL>
                         <system_cache__appinfo:PARAM_OUT>
                            <system_cache__appinfo:ALIAS_ID>
-                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/SYM_UL</fes:ValueReference>
+                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ulice:TERYT_ulice/SYM_UL</fes:ValueReference>
                            </system_cache__appinfo:ALIAS_ID>
                            <system_cache__appinfo:DESC>
-                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_1</fes:ValueReference>
+                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ulice:TERYT_ulice/NAZWA_1</fes:ValueReference>
                            </system_cache__appinfo:DESC>
                            <system_cache__appinfo:DESC>
-                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ULIC:TERYT_ULIC/NAZWA_2</fes:ValueReference>
+                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/default_db__x3A__TERYT_ulice:TERYT_ulice/NAZWA_2</fes:ValueReference>
                            </system_cache__appinfo:DESC>
                            <!-\- chyba nie ma sensu tutaj klikac -\->
                            <system_cache__appinfo:PARAM_IN>
@@ -219,18 +218,18 @@ to samo co ID_TERYT_wojewodztwa</xs:documentation>
       <xs:attribute name="label" type="xs:string"/>
       <xs:assert
          test="@label = concat(NAZWA, ' ', default_db__x3A__TERYT_powiaty:TERYT_powiaty/@label, ' ', default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/@label)"/>
-      <xs:assert test="WOJ = default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ">
+      <xs:assert test="WOJ = default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ">
          <xs:annotation>
             <xs:documentation>Szukamy dla tego samego wojewodztwa
 (dodatk. zabezp sa na flat_rel_cache)</xs:documentation>
          </xs:annotation>
       </xs:assert>
-      <xs:assert test="POW = default_db__x3A__TERYT_ULIC:TERYT_ULIC/POW">
+      <xs:assert test="POW = default_db__x3A__TERYT_ulice:TERYT_ulice/POW">
          <xs:annotation>
             <xs:documentation>taki sam powiat dla szukania</xs:documentation>
          </xs:annotation>
       </xs:assert>
-      <xs:assert test="GMI = default_db__x3A__TERYT_ULIC:TERYT_ULIC/GMI">
+      <xs:assert test="GMI = default_db__x3A__TERYT_ulice:TERYT_ulice/GMI">
          <xs:annotation>
             <xs:documentation>Tylko ulicy z danej gminy w kontekscie szukania</xs:documentation>
          </xs:annotation>

+ 12 - 12
SE/schema/ant-object/default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd

@@ -5,13 +5,13 @@
    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
    targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
    vc:minVersion="1.1"
-   xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
+   
    xmlns:default_db__x3A__TERYT_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
    xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
    xmlns:ogc="http://www.opengis.net/ogc" xmlns:fes="http://www.opengis.net/fes/2.0"
    xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
    xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
-   xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd">
+   xmlns:default_db__x3A__TERYT_ulice="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd">
    <xs:annotation>
       <xs:documentation>CREATE ALGORITHM=UNDEFINED DEFINER=`bzyk`@`94.158.130.34` SQL SECURITY DEFINER VIEW `TERYT_powiaty`
 AS SELECT
@@ -26,10 +26,10 @@ FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` > 0) and ((`TERYT_TERC`.`GMI` = 0)
       schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
       schemaLocation="../../default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
-      schemaLocation="../../default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
-      schemaLocation="../../default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd"/>
+   <!--<xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
+      schemaLocation="../../default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd"/>-->
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
+      schemaLocation="../../default_db.TERYT_ulice/TERYT_ulice/TERYT_ulice.xsd"/>
    <xs:complexType name="TERYT_powiaty">
       <xs:sequence>
          <xs:element name="ID" type="xs:int">
@@ -80,7 +80,7 @@ FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` > 0) and ((`TERYT_TERC`.`GMI` = 0)
                <xs:documentation>Moze byc dostepnych wiecej gmin z jednego powiatuy</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element maxOccurs="unbounded" minOccurs="1"
+         <!--<xs:element maxOccurs="unbounded" minOccurs="1"
             ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
             <xs:annotation>
                <xs:appinfo>
@@ -104,8 +104,8 @@ FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` > 0) and ((`TERYT_TERC`.`GMI` = 0)
                <xs:documentation>Ciekawea możliwość powinna być aby wyfiltrować z punkjtu widzenia danego powiatu, jakie są zależności w TERYT_adresy  - czyli aby móc zoabczyć adresuy  oraz aby móc wybrać uliucę z ograniczonych wstępnie relacji.</xs:documentation>
                <xs:documentation>Ta relacja zostanie wykorzystana do zidentytfikowania, przy przecbodzeniu do TERYT_adresy, aby wykorzystać z niej zależności</xs:documentation>
             </xs:annotation>
-         </xs:element>
-         <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_ULIC:TERYT_ULIC">
+         </xs:element>-->
+         <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_ulice:TERYT_ulice">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
@@ -128,15 +128,15 @@ FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` > 0) and ((`TERYT_TERC`.`GMI` = 0)
                               <!-- teraz korzystamy z zaleznosci do docelowego obietkyu -->
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>WOJ</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>POW</fes:ValueReference>
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/POW</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/POW</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                               <fes:PropertyIsEqualTo> <!-- tutaj lacze dane z ograniczonej ilosc gmin -->
                                  <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminys/GMI</fes:ValueReference>s
-                                 <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/GMI</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/GMI</fes:ValueReference>
                               </fes:PropertyIsEqualTo>                              
                            </fes:And>
                         </fes:Filter>

+ 210 - 0
SE/schema/ant-object/default_db.TERYT_ulice/TERYT_ulice/TERYT_ulice.xsd

@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+   xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
+   vc:minVersion="1.1"
+   xmlns:default_db__x3A__TERYT_ulice="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
+   xmlns:ogc="http://www.opengis.net/ogc" xmlns:fes="http://www.opengis.net/fes/2.0"
+   xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
+   xmlns:default_db__x3A__TERYT_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
+   xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
+   xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
+   xmlns:default_db__x3A__TERYT_SIMC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd">
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
+      schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd">
+      <xs:annotation>
+         <xs:documentation>Powinno sie dac wyjsc z ulic do gmin aby szukac w kolko</xs:documentation>
+      </xs:annotation>
+   </xs:import>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
+      schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
+      schemaLocation="../../default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_adresy.xsd"
+      schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd">
+      <xs:annotation>
+         <xs:documentation>Tutaj będizemy mogli zawsze dorzycić swoje dane (dorzucić swoje dane adresowe)
+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>
+      </xs:annotation>
+   </xs:import>
+   <xs:complexType name="TERYT_ulice">
+      <xs:sequence>
+         <xs:element name="WOJ" type="xs:int"/>
+         <xs:element ref="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
+                        <fes:Filter>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>WOJ</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/WOJ</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                        </fes:Filter>
+                     </system_cache__appinfo:source>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do wojewodztwa</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="POW" type="xs:int"/>
+         <xs:element ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
+                        <fes:Filter>
+                           <fes:And>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>WOJ</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/WOJ</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>POW</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_powiaty:TERYT_powiaty/POW</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                           </fes:And>
+                        </fes:Filter>
+                     </system_cache__appinfo:source>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do powiatu</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="GMI" type="xs:int"/>
+         <xs:element ref="default_db__x3A__TERYT_gminy:TERYT_gminy" minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                     <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
+                           <fes:Filter>
+                              <fes:And>
+                                 <fes:PropertyIsEqualTo>
+                                    <fes:ValueReference>WOJ</fes:ValueReference>
+                                    <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/WOJ</fes:ValueReference>
+                                 </fes:PropertyIsEqualTo>
+                                 <fes:PropertyIsEqualTo>
+                                    <fes:ValueReference>POW</fes:ValueReference>
+                                    <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/POW</fes:ValueReference>
+                                 </fes:PropertyIsEqualTo>
+                                 <fes:PropertyIsEqualTo>
+                                    <fes:ValueReference>v</fes:ValueReference>
+                                    <fes:ValueReference>default_db__x3A__TERYT_gminy:TERYT_gminy/GMI</fes:ValueReference>
+                                 </fes:PropertyIsEqualTo>
+                              </fes:And>
+                           </fes:Filter>
+                        </system_cache__appinfo:source>
+                     </system_cache__appinfo:flat_relation_cache>
+                  </xs:appinfo>
+               <xs:documentation>Z każdej jednej ulicy powinno się dać wyjść do gminy</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="RODZ_GMI" type="xs:int"/>
+         <xs:element name="SYM" type="xs:int"/>
+         <!--<xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
+                        <fes:Filter>
+                           <fes:And>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>WOJ</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/WOJ</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>POW</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/POW</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>SYM</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/SYM</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                           </fes:And>
+                        </fes:Filter>
+                     </system_cache__appinfo:source>
+                     <!-\-<system_cache__appinfo:TYPESPECIAL>
+                        <system_cache__appinfo:PARAM_EXPORT>
+                           <system_cache__appinfo:ALIAS_ID>
+                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
+                           </system_cache__appinfo:ALIAS_ID>
+                           <system_cache__appinfo:DESC>
+                              <fes:ValueReference>SYM</fes:ValueReference>
+                           </system_cache__appinfo:DESC>
+                        </system_cache__appinfo:PARAM_EXPORT>
+                        <system_cache__appinfo:PARAM_EXPORT>
+                           <system_cache__appinfo:ALIAS_ID>
+                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
+                           </system_cache__appinfo:ALIAS_ID>
+                           <system_cache__appinfo:DESC>
+                              <fes:ValueReference>SYM_UL</fes:ValueReference>
+                           </system_cache__appinfo:DESC>
+                        </system_cache__appinfo:PARAM_EXPORT>
+                     </system_cache__appinfo:TYPESPECIAL>-\->
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation> Z ulic powinno sie przejsc na SIMC i widziec wyszukane konteksty </xs:documentation>
+            </xs:annotation>
+         </xs:element>-->
+         <xs:element name="SYM_UL" type="xs:int"/>
+         <xs:element name="CECHA" type="xs:string"/>
+         <xs:element name="NAZWA_1" type="xs:string"/>
+         <xs:element name="NAZWA_2" type="xs:string"/>
+         <xs:element name="STAN_NA" type="xs:date"/>
+         <xs:element ref="default_db__x3A__TERYT_adresy:TERYT_adresy">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
+                        <fes:Filter>
+                           <fes:And>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>WOJ</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/WOJ</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>POW</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/POW</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                              <fes:PropertyIsEqualTo>
+                                 <fes:ValueReference>GMI</fes:ValueReference>
+                                 <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/GMI</fes:ValueReference>
+                              </fes:PropertyIsEqualTo>
+                           </fes:And>
+                        </fes:Filter>
+                     </system_cache__appinfo:source>
+                     <system_cache__appinfo:TYPESPECIAL>
+                        <system_cache__appinfo:PARAM_EXPORT>
+                           <system_cache__appinfo:ALIAS_ID>
+                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
+                           </system_cache__appinfo:ALIAS_ID>
+                           <system_cache__appinfo:DESC>
+                              <fes:ValueReference>SYM</fes:ValueReference>
+                           </system_cache__appinfo:DESC>
+                        </system_cache__appinfo:PARAM_EXPORT>
+                        <system_cache__appinfo:PARAM_EXPORT>
+                           <system_cache__appinfo:ALIAS_ID>
+                              <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
+                           </system_cache__appinfo:ALIAS_ID>
+                           <system_cache__appinfo:DESC>
+                              <fes:ValueReference>SYM_UL</fes:ValueReference>
+                           </system_cache__appinfo:DESC>
+                        </system_cache__appinfo:PARAM_EXPORT>
+                     </system_cache__appinfo:TYPESPECIAL>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>W każdej chwili powinno być dostępne wejście do adresów w kontekście wybbranych parametrów wyszikiwania, 
+                  aby móc dopisać wyszukiwanie i z niego odziedziczyć wpisanie na bazie asserts? (pushujemy) - relacje są na podstawie widoków przecież.
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:sequence>
+      <xs:attribute name="label" type="xs:string"/>
+      <xs:assert
+         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)"
+      />
+   </xs:complexType>
+   <xs:element name="TERYT_ulice" type="default_db__x3A__TERYT_ulice:TERYT_ulice"/>
+</xs:schema>

+ 0 - 0
SE/schema/ant-object/default_db.TERYT_SIMC/TERYT_SIMC/build.xml → SE/schema/ant-object/default_db.TERYT_ulice/TERYT_ulice/build.xml


+ 10 - 12
SE/schema/ant-object/default_db.TERYT_wojewodztwa/TERYT_wojewodztwa/TERYT_wojewodztwa.xsd

@@ -10,7 +10,7 @@
    xmlns:default_db__x3A__TERYT_wojewodztwa="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_wojewodztwa.xsd"
    xmlns:default_db__x3A__TERYT_powiaty="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_powiaty.xsd"
    xmlns:default_db__x3A__TERYT_gminy="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
-   xmlns:default_db__x3A__TERYT_ULIC="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd">
+   xmlns:default_db__x3A__TERYT_ulice="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd">
    <xs:annotation>
       <xs:documentation>Bazujace na widoku :
 CREATE ALGORITHM=UNDEFINED DEFINER=`bzyk`@`94.158.130.34` SQL SECURITY DEFINER VIEW `TERYT_wojewodztwa`
@@ -25,10 +25,8 @@ FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` = 0) or isnull(`TERYT_TERC`.`POW`))
       schemaLocation="../../default_db.TERYT_powiaty/TERYT_powiaty/TERYT_powiaty.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
       schemaLocation="../../default_db.TERYT_gminy/TERYT_gminy/TERYT_gminy.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_SIMC.xsd"
-      schemaLocation="../../default_db.TERYT_SIMC/TERYT_SIMC/TERYT_SIMC.xsd"/>
-   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ULIC.xsd"
-      schemaLocation="../../default_db.TERYT_ULIC/TERYT_ULIC/TERYT_ULIC.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_ulice.xsd"
+      schemaLocation="../../default_db.TERYT_ulice/TERYT_ulice/TERYT_ulice.xsd"/>
    <xs:complexType name="TERYT_wojewodztwa">
       <xs:sequence>
          <xs:element name="ID" type="xs:int">
@@ -89,37 +87,37 @@ FROM `TERYT_TERC` where ((`TERYT_TERC`.`POW` = 0) or isnull(`TERYT_TERC`.`POW`))
                </xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element maxOccurs="unbounded" minOccurs="1"
+         <!--<xs:element maxOccurs="unbounded" minOccurs="1"
             ref="default_db__x3A__TERYT_SIMC:TERYT_SIMC">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
                      <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"/>
                   </system_cache__appinfo:flat_relation_cache>
-                  <!--<system_cache__appinfo:flat_relation_cache>
+                  <!-\-<system_cache__appinfo:flat_relation_cache>
                         <fes:Filter>
                               <fes:PropertyIsEqualTo>
                                  <fes:ValueReference>WOJ</fes:ValueReference>
                                  <fes:ValueReference>default_db__x3A__TERYT_SIMC:TERYT_SIMC/WOJ</fes:ValueReference>
                               </fes:PropertyIsEqualTo>
                         </fes:Filter>
-                  </system_cache__appinfo:flat_relation_cache>-->
+                  </system_cache__appinfo:flat_relation_cache>-\->
                </xs:appinfo>
                <xs:documentation>Zawsze powinno się móc przeskoczyć do bazy SIMC z ograniczonym filtrem</xs:documentation>
             </xs:annotation>
-         </xs:element>
-         <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_ULIC:TERYT_ULIC">
+         </xs:element>-->
+         <xs:element maxOccurs="unbounded" ref="default_db__x3A__TERYT_ulice:TERYT_ulice">
             <xs:annotation>
                <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
                      <system_cache__appinfo:flat_relation_cache>
-                        <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view" system_cache__appinfo:xpath="default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ"/>
+                        <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"/>
                      </system_cache__appinfo:flat_relation_cache>
                      <!--<system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
                         <fes:Filter>
                            <fes:PropertyIsEqualTo>
                               <fes:ValueReference>WOJ</fes:ValueReference>
-                              <fes:ValueReference>default_db__x3A__TERYT_ULIC:TERYT_ULIC/WOJ</fes:ValueReference>
+                              <fes:ValueReference>default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ</fes:ValueReference>
                            </fes:PropertyIsEqualTo>
                         </fes:Filter>
                      </system_cache__appinfo:source>-->