LayerMoveElement (ZWS)

Перемещает объект слоя

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

  <xs:element name="zulu-server">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Command">
                    <xs:complexType>
                        <xs:choice>
                            <xs:element name="LayerMoveElement" type="typeLayerMoveElement"/>
                        </xs:choice>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
	<xs:complexType name="typeLayerMoveElement">
        <xs:all>
            <xs:element name="Layer" type="typeLayer"/>
            <xs:element name="ElemID" type="xs:integer"/>
            <xs:element name="CRS" type="typeCRS" minOccurs="0" maxOccurs="1" default="EPSG:3857"/>
            <xs:element name="X1" type="xs:double"/>
            <xs:element name="Y1" type="xs:double"/>
            <xs:element name="X2" type="xs:double"/>
            <xs:element name="Y2" type="xs:double"/>
            <xs:element name="Duplicate" type="typeFlag" minOccurs="0" default="No"/>
            <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="LayerMoveElement"/>
                </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>
        <LayerMoveElement>        
            <Layer>riga:teplo</Layer>
            <ElemID>75800</ElemID>  
            <CRS>EPSG:3857</CRS>
            <X1>19858128.32</X1>
            <Y1>2727343.02</Y1>
            <X2>19858128.32</X2>
            <Y2>2739343.02</Y2>
            <Duplicate>No</Duplicate>
            <KeepConnected>No</KeepConnected>            
	  </LayerMoveElement>
    </Command>
</zulu-server> 
   

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

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