GetLayerBounds (ZWS)

Возвращает габариты слоя

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

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


<xs:complexType name="typeGetLayerBounds">
    <xs:all>
        <xs:element name="Layer" type="typeLayer"/>
    </xs:all>
</xs:complexType>
   

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

<xs:complexType name="typeGetLayerBoundsResponse">
    <xs:all>
        <xs:element name="Bounds">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="BoundingBox" type="typeBoundingBox" maxOccurs="unbounded"/>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    </xs:all>
</xs:complexType>


<xs:complexType name="typeBoundingBox">
    <xs:attribute name="CRS" type="typeCRS"/>
    <xs:attribute name="minx" type="xs:double"/>
    <xs:attribute name="miny" type="xs:double"/>
    <xs:attribute name="maxx" type="xs:double"/>
    <xs:attribute name="maxy" type="xs:double"/>
</xs:complexType>
        

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

    <zulu-server service="zws" version="1.0.0">
        <Command>
            <GetLayerBounds>
            <Layer>riga:teplo</Layer>          
            </GetLayerBounds>            
        </Command>
    </zulu-server>          
   

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

         
<?xml version="1.0" encoding="UTF-8" ?>
<zwsResponse>
    <GetLayerBounds>
        <Bounds>
            <BoundingBox CRS="EPSG:4326" minx="56.886598" miny="23.992510" maxx="56.977003" maxy="24.116738" />
            <BoundingBox CRS="EPSG:3857" minx="7736975.513859" miny="2670833.945157" maxx="7755419.826169" maxy="2684663.016566" />
        </Bounds>
    </GetLayerBounds>
    <RetVal>0</RetVal>
</zwsResponse>