LayerAddPolygon (ZWS)

Добавляет в слой площадной объект

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

  <xs:element name="zulu-server">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Command">
                    <xs:complexType>
                        <xs:choice>
                            <xs:element name="LayerAddPolygon" type="typeLayerAddPolygon"/>
                        </xs:choice>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
	
	<xs:complexType name="typeLayerAddPolygon">
        <xs:all>
            <xs:element name="Layer" type="typeLayer"/>
            <xs:element name="TypeID" type="xs:integer"/>
            <xs:element name="ModeNum" type="typeModeNum"/>
            <xs:element name="CRS" type="typeCRS" minOccurs="0" maxOccurs="1" default="EPSG:3857"/>
            <xs:element name="coordinates" type="kml:CoordinatesType"/>
        </xs:all>
    </xs:complexType>
	
   
   

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

    
    <xs:element name="zwsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:choice minOccurs="0">
                    <xs:element name="LayerAddPolygon"/>
                </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>
        <LayerAddPolygon>
         	<Layer>riga:teplo</Layer>
            <TypeID>15</TypeID>
            <ModeNum>1</ModeNum>
            <CRS>EPSG:3857</CRS>
            <coordinates>7754557.35,2674979.51
            7754680.74,2675191.87
            7754713.32,2675005.00
            </coordinates>            
		</LayerAddPolygon>
    </Command>
</zulu-server>
   

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

         
<?xml version="1.0" encoding="UTF-8" ?>
<zwsResponse>
    <LayerAddPolygon />
        <RetVal>75803</RetVal>
</zwsResponse>