<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
           xmlns:gml="http://www.opengis.net/gml/3.2"
           xmlns:zzdcu="urn:cz:isvs:isui:schemas:ZapisZmenyDCUTypy:v1"
           targetNamespace="urn:cz:isvs:reg:schemas:PredaniZmenyDCUTypy:v1"
           xmlns:pzmdcu="urn:cz:isvs:reg:schemas:PredaniZmenyDCUTypy:v1"
           xmlns="urn:cz:isvs:reg:schemas:PredaniZmenyDCUTypy:v1"
           xmlns:base="urn:cz:isvs:ruian:schemas:BaseTypy:v1"
           elementFormDefault="qualified"
           version="1.0">

    <xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../../common/gml/3.2.1/gml.xsd"/>
    <xs:import namespace="urn:cz:isvs:isui:schemas:ZapisZmenyDCUTypy:v1" schemaLocation="ZapisZmenyDCUTypy.xsd"/>
    <xs:import namespace="urn:cz:isvs:ruian:schemas:BaseTypy:v1" schemaLocation="../../ruian/xsd/typy/BaseTypy.xsd"/>

    <xs:element name="PredaniZmenyDCURequest" type="pzmdcu:PredaniZmenyDCURequestType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Požadavek na předání změny definiční čáry ulice</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PredaniZmenyDCURequestType">
        <xs:sequence>
            <xs:element name="ZpravaId" type="base:Id18Type">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Unikátní identifikátor zprávy v ISÚI</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ObecKod" type="base:Kod6Type">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Kód obce, kde ulice leží</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NzDatumZapisu" type="base:DatumCasType">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum a čas zápisu v ISÚI</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NzId" type="base:Id18Type">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">ID návrhu změny</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EditorOvm" type="base:Nazev50Type">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Zkratka OVM</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EditorUzivatel" type="base:Nazev50Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Editor návrhu změny</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NzNazev" type="base:Nazev100Type">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název návrhu změny</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NzPopis" type="base:Text1000Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Popis návrhu změny</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NzPodklady" type="NzPodkladSeznamType">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Podklady návrhu změny</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NzPrilohy" type="NzPrilohaSeznamType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Přílohy s návrhem zákresu definičních čar ulic</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DefiniceUlic" type="DefiniceUlicSeznamType" minOccurs="1"/>
        </xs:sequence>
    </xs:complexType>
 
    <xs:complexType name="NzPodkladSeznamType">
        <xs:sequence>
            <xs:element name="NzPodklad" type="NzPodkladType" minOccurs="1" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Podklad návrhu změny</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="NzPodkladType">
        <xs:sequence>
            <xs:element name="Popis" type="base:Text4000Type"/>
            <xs:element name="CisloJednaci" type="base:Nazev50Type"/>
            <xs:element name="PravniPredpis" type="base:Text4000Type" minOccurs="0"/>
            <xs:element name="DatumUcinnosti" type="base:DatumCasType" minOccurs="0"/>
            <xs:element name="DatumRozhodnuti" type="base:DatumCasType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    
    <xs:complexType name="NzPrilohaSeznamType">
        <xs:sequence>
            <xs:element name="NzPriloha" type="NzPrilohaType" minOccurs="1" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    
    <xs:complexType name="NzPrilohaType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Příloha s návrhem zákresu definičních čar ulic</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SouborObsah" type="xs:base64Binary"/>
            <xs:element name="SouborPripona" type="base:Nazev5Type"/>
            <xs:element name="PrilohaPopis" type="base:Text4000Type" minOccurs="0"/>
         </xs:sequence>
    </xs:complexType>
    
    <xs:complexType name="DefiniceUlicSeznamType">
        <xs:sequence>
            <xs:element name="Ulice" type="DefiniceUliceType" minOccurs="1" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    
    <xs:complexType name="DefiniceUliceType">
        <xs:sequence>
            <xs:element name="UliceKod" type="base:Kod7Type"/>
            <xs:element name="UliceNazev" type="base:Nazev48Type"/>
            <xs:element name="Dcu" type="gml:MultiCurvePropertyType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Definiční čára ulice</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    
    <xs:element name="PredaniZmenyDCUResponse" type="PredaniZmenyDCUResponseType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Požadavek na předání změn definičních čar ulic</xs:documentation>
        </xs:annotation>
    </xs:element>
        
    <xs:complexType name="PredaniZmenyDCUResponseType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Odpověď na požadavek na předání změn definičních čar ulic</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Status" type="zzdcu:TeloStatusType"/>
        </xs:sequence>
    </xs:complexType>
</xs:schema>