LayerAddSymbol (ZWS)

Добавляет в слой символьный объект

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

    <xs:element name="zulu-server">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Command">
                    <xs:complexType>
                        <xs:choice>
                            <xs:element name="LayerAddSymbol" type="typeLayerAddSymbol"/>
                        </xs:choice>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
	
    <xs:complexType name="typeLayerAddSymbol">
        <xs:all>
            <xs:element name="Layer" type="typeLayer"/>
            <xs:element name="TypeID" type="xs:integer"/>
            <xs:element name="ModeNum" type="typeModeNum"/>
            <xs:element name="X" type="xs:double"/>
            <xs:element name="Y" type="xs:double"/>
            <xs:element name="CRS" type="typeCRS" minOccurs="0" maxOccurs="1" default="EPSG:3857"/>
            <xs:element name="Angle" type="xs:double" minOccurs="0" default="0"/>
        </xs:all>
    </xs:complexType>
   
   

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

    <xs:element name="zwsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:choice minOccurs="0">
                    <xs:element name="LayerAddSymbol"/>
                </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>
        <LayerAddSymbol>
             <Layer>riga:teplo</Layer>
            <TypeID>2</TypeID>
            <ModeNum>2</ModeNum>
            <X>56.96</X>
            <Y>24.03</Y>
            <CRS>EPSG:3857</CRS>
            <Angle>0</Angle>
        </LayerAddSymbol>
    </Command>
</zulu-server>
   

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

         
<?xml version="1.0" encoding="UTF-8"?>
    <zwsResponse>
        <LayerAddSymbol></LayerAddSymbol>
            <RetVal>75798</RetVal
    </zwsResponse>