LayerMoveNode (ZWS)

Перемещение узла элемента

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

<xs:element name="zulu-server">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="Command">
                <xs:complexType>
                    <xs:choice>
                        <xs:element name="LayerMoveNode" type="typeLayerMoveNode"/>
                    </xs:choice>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>

<xs:complexType name="typeLayerMoveNode">
    <xs:all>
        <xs:element name="Layer" type="typeLayer"/>
        <xs:element name="ElemID" type="xs:integer"/>
        <xs:element name="SegmentIdx" type="typeSegmentIdx"/>            
        <xs:element name="NodeIdx" type="typeNodeIdx"/>                       
        <xs:element name="CRS" type="typeCRS" minOccurs="0" maxOccurs="1" default="EPSG:3857"/>
        <xs:element name="X" type="xs:double"/>
        <xs:element name="Y" type="xs:double"/>  
        <xs:element name="KeepConnected" type="typeFlag" minOccurs="0" default="Yes"/>
    </xs:all>
</xs:complexType>
 
   

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

         
<xs:element name="zwsResponse">
    <xs:complexType>
        <xs:sequence>
            <xs:choice minOccurs="0">
                <xs:element name="LayerMoveNode"/>
            </xs:choice>
            <xs:element name="RetVal" type="xs:integer"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>
       

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

    
<?xml version="1.0" encoding="UTF-8"?>
<zulu-server service="zws" version="1.0.0">
    <Command>
            <LayerMoveNode>
            <Layer>riga:teplo</Layer>
            <ElemID>75806</ElemID>        
            <SegmentIdx>0</SegmentIdx>
      	<NodeIdx>2</NodeIdx>
            <CRS>EPSG:3857</CRS>
            <X>7754710.70</X>
            <Y>2675068.84</Y>
            <KeepConnected>Yes</KeepConnected>
        </LayerMoveNode>
    </Command>
</zulu-server>      
       

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

<?xml version="1.0" encoding="UTF-8"?>
<zwsResponse>
    <LayerMoveNode/>
    <RetVal>0</RetVal>
</zwsResponse>