| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?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: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_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_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"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
- xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
- 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"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
- xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
- xmlns:ant-object="http://biuro.biall-net.pl/xmlschema_procesy5/ant-object/ant-object.xsd"
- xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
- targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/TERYT_gminy.xsd"
- vc:minVersion="1.1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>CREATE ALGORITHM=UNDEFINED DEFINER=`bzyk`@`94.158.130.34` SQL SECURITY DEFINER VIEW `TERYT_gminy`
- AS SELECT
- ((((`TERYT_TERC`.`WOJ` * 16777216) + (`TERYT_TERC`.`POW` * 65536)) + (`TERYT_TERC`.`GMI` * 256)) + `TERYT_TERC`.`RODZ`) AS `ID`,
- `TERYT_TERC`.`WOJ` AS `ID_TERYT_wojewodztwa`,((`TERYT_TERC`.`WOJ` * 256) + `TERYT_TERC`.`POW`) AS `ID_TERYT_powiaty`,
- `TERYT_TERC`.`WOJ` AS `WOJ`,
- `TERYT_TERC`.`POW` AS `POW`,
- `TERYT_TERC`.`GMI` AS `GMI`,
- `TERYT_TERC`.`RODZ` AS `RODZ`,
- `TERYT_TERC`.`NAZWA` AS `NAZWA`,
- `TERYT_TERC`.`NAZWA_DOD` AS `NAZWA_DOD`
- 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_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_adresy.xsd"
- schemaLocation="../../default_db.TERYT_adresy/TERYT_adresy/TERYT_adresy.xsd"/>
- <xs:complexType name="TERYT_gminy" id="TERYT_gminy___d18e20714-1_TERYT_gmin">
- <xs:sequence id="TERYT_gminy___d18e20715-1">
- <xs:element name="ID" type="xs:int" id="TERYT_gminy___d18e20716-1_ID"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>((((`TERYT_TERC`.`WOJ` * 16777216) + (`TERYT_TERC`.`POW` * 65536)) + (`TERYT_TERC`.`GMI` * 256)) + `TERYT_TERC`.`RODZ`) AS `ID`</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="ID_TERYT_wojewodztwa"
- type="xs:int"
- id="TERYT_gminy___d18e20720-1_ID_TERYT_w"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>To samo co WOJ
- `TERYT_TERC`.`WOJ` AS `ID_TERYT_wojewodztwa`</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="ID_TERYT_powiaty"
- type="xs:int"
- id="TERYT_gminy___d18e20724-1_ID_TERYT_p"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>((`TERYT_TERC`.`WOJ` * 256) + `TERYT_TERC`.`POW`) AS `ID_TERYT_powiaty`</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="WOJ" type="xs:int" id="TERYT_gminy___d18e20728-1_WOJ"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>`TERYT_TERC`.`WOJ` AS `WOJ`
- to samo co ID_TERYT_wojewodztwa</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element ref="default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa"
- id="TERYT_gminy___d18e20732-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:appinfo>
- <system_cache__appinfo:flat_relation_cache>
- <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"><!--<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>Zawsze moze wyskoczyc z wyszukiwania spowrotem na województwa</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="POW" type="xs:int" id="TERYT_gminy___d18e20740-1_POW"/>
- <xs:element ref="default_db__x3A__TERYT_powiaty:TERYT_powiaty"
- id="TERYT_gminy___d18e20741-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:appinfo>
- <system_cache__appinfo:flat_relation_cache>
- <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"><!--<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>Zawsze moze wyskoczyc z wyszukiwania spowrotem na powiaty</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:element name="GMI" type="xs:int" id="TERYT_gminy___d18e20749-1_GMI"/>
- <xs:element name="NAZWA" type="xs:string" id="TERYT_gminy___d18e20750-1_NAZWA"/>
- <!--<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_ulice:TERYT_ulice"
- maxOccurs="unbounded"
- minOccurs="0"
- id="TERYT_gminy___d18e20752-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>
- Variables are specified in WMS GetMap requests by using the env request parameter followed by a list of name:value pairs separated by semicolons:
- ...&env=name1:value1;name2=value2&...
- <!--<ogc:Function name="env">
- <ogc:Literal>size</ogc:Literal>
- </ogc:Function>--></xs:documentation>
- <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_ulice:TERYT_ulice/WOJ</fes:ValueReference>
- </fes:PropertyIsEqualTo>
- <fes:PropertyIsEqualTo>
- <fes:ValueReference>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_ulice:TERYT_ulice/GMI</fes:ValueReference>
- </fes:PropertyIsEqualTo>
- </fes:And>
- </fes:Filter>
- <!--<ogc:Filter>
- <ogc:And>
- <ogc:PropertyIsEqualTo><ogc:PropertyName>ID</ogc:PropertyName><ogc:Literal>2</ogc:Literal></ogc:PropertyIsEqualTo>
- </ogc:And>
- </ogc:Filter>-->
- </system_cache__appinfo:source>
- </system_cache__appinfo:flat_relation_cache>
- </xs:appinfo>
- </xs:annotation>
- </xs:element>
- <xs:element maxOccurs="unbounded"
- minOccurs="0"
- ref="default_db__x3A__TERYT_adresy:TERYT_adresy"
- id="TERYT_gminy___d18e20779-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:appinfo>
- <system_cache__appinfo:flat_relation_cache>
- <system_cache__appinfo:source system_cache__appinfo:ref_engine="view">
- <fes:Filter>
- <fes:PropertyIsEqualTo><!-- joinuje przez ulice -->
- <fes:ValueReference>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_ulice:TERYT_ulice/POW</fes:ValueReference>
- </fes:PropertyIsEqualTo>
- <fes:PropertyIsEqualTo>
- <fes:ValueReference>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_ulice:TERYT_ulice/SYM</fes:ValueReference>
- <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
- </fes:PropertyIsEqualTo>
- </fes:Filter>
- <!--<fes:Filter><!-\- chyba jest to potrzebne, eby wykluczyc niepotrzebne wyniki -\->
- <fes:PropertyIsEqualTo>
- <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
- <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM</fes:ValueReference>
- </fes:PropertyIsEqualTo>
- </fes:Filter>-->
- </system_cache__appinfo:source>
- <!--<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_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_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_ulice:TERYT_ulice/NAZWA_2</fes:ValueReference>
- </system_cache__appinfo:DESC>
- <!-\- chyba nie ma sensu tutaj klikac -\->
- <system_cache__appinfo:PARAM_IN>
- <!-\- tutaj nalezy zapisać wyszukaną ulicę -\->
- <fes:ValueReference>default_db__x3A__TERYT_adresy:TERYT_adresy/TERYT_SYM_UL</fes:ValueReference>
- </system_cache__appinfo:PARAM_IN>
- </system_cache__appinfo:PARAM_OUT>
- <!-\-<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>Wyszukiwanie adresow bedzie tez mozliwe z tego kontekstu.</xs:documentation>
- </xs:annotation>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="label" type="xs:string" id="TERYT_gminy___d18e20810-1_label"/>
- <xs:assert test="@label = concat(NAZWA, ' ', default_db__x3A__TERYT_powiaty:TERYT_powiaty/@label, ' ', default_db__x3A__TERYT_wojewodztwa:TERYT_wojewodztwa/@label)"
- id="TERYT_gminy___d18e20811-1"/>
- <xs:assert test="WOJ = default_db__x3A__TERYT_ulice:TERYT_ulice/WOJ"
- id="TERYT_gminy___d18e20812-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <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_ulice:TERYT_ulice/POW"
- id="TERYT_gminy___d18e20816-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>taki sam powiat dla szukania</xs:documentation>
- </xs:annotation>
- </xs:assert>
- <xs:assert test="GMI = default_db__x3A__TERYT_ulice:TERYT_ulice/GMI"
- id="TERYT_gminy___d18e20820-1"><!--#375 match annotation with (prefix:xs);(root/schema/@xmlns=())-->
- <xs:annotation>
- <xs:documentation>Tylko ulicy z danej gminy w kontekscie szukania</xs:documentation>
- </xs:annotation>
- </xs:assert>
- </xs:complexType>
- <xs:element name="TERYT_gminy"
- type="default_db__x3A__TERYT_gminy:TERYT_gminy"
- id="TERYT_gminy___d18e20824-1_TERYT_gmin"/>
- </xs:schema>
|