IntersectElemByLayer (ZWS)

Пересекает объект слоя с объектами другого слоя

Схема запроса:

  <xs:element name="zulu-server">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Command">
                    <xs:complexType>
                        <xs:choice>
                            <xs:element name="IntersectElemByLayer" type="typeIntersectElemByLayer"/>
                        </xs:choice>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
	<xs:complexType name="typeIntersectElemByLayer">
        <xs:all>
            <xs:element name="Layer" type="typeLayer"/>
            <xs:element name="Layer1" type="xs:string"/>
            <xs:element name="ElemID" type="typeListOfIntegers"/>
            <xs:element name="Relation" type="typeSpatialOperator"  minOccurs="0" default="Within"/>
        </xs:all>
    </xs:complexType>
   

Схема ответа:

   <xs:element name="zwsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:choice minOccurs="0">
                    <xs:element name="IntersectElemByLayer" type="typeIntersectElemByLayerResponse"/>
                </xs:choice>
                <xs:element name="RetVal" type="xs:integer"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
	
	<xs:complexType name="typeIntersectElemByLayerResponse">
        <xs:all>
            <xs:element name="Elements">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="Element" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                                <xs:all>
                                    <xs:element name="ElemID" type="xs:integer"/>
                                    <xs:element name="Keys" type="typeListOfIntegers"/>
                                </xs:all>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:all>
    </xs:complexType>	
        

Пример запроса:

<?xml version="1.0" encoding="UTF-8"?>
<zulu-server service="zws" version="1.0.0">
    <Command>
        <IntersectElemByLayer>        
         	<Layer>riga:teplo</Layer>
            <Layer1>riga:houses</Layer1>
            <ElemID>19931</ElemID>                
        </IntersectElemByLayer>
    </Command>
</zulu-server>
   

Пример ответа:

         
<?xml version="1.0" encoding="UTF-8" ?>
<zwsResponse>
    <IntersectElemByLayer>
        <Elements>
            <Element>
                <ElemID>19931</ElemID>
                <Keys>93859</Keys>
            </Element>
        </Elements>
    </IntersectElemByLayer>
    <RetVal>1</RetVal>
</zwsResponse>