Jayeeta Mukherjee wrote:
Hi,
> I want to use the wms service with my own set of data.The two layers i
> want to use are an administrative boundary and another is the school in this
> administrative area.Now i am using the following query to retrive the map of
> the administrative boundary:
a small note beforehand: if you're not using custom styling, it is
really recommended to use the standard WMS KVP syntax for requests
instead of the SLD Post GetMap requests you're using.
Anyway, here go my comments (I've reordered some parts of your mail for
clarity of my responses):
> now i want to see a map which will show a specific school in the
> administrative boundary, and for that i want to use a single query,like the
> queries mentioned above.what should be the format of the query?can i mention
> two bounding boxes in a single query?
You can never use two bounding boxes in one request. The concept of a
single request is that the WMS "displays" a certain area in the map. If
you use two different bounding boxes, this is not the case any more (one
location in one map would correspond to a different location in the
other map).
But if you just want to request the two layers at once, you can do it
like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <ogc:GetMap xmlns:ogc="
http://www.opengis.net/ows"
> xmlns:gml="
http://www.opengis.net/gml"
> xmlns:sld="
http://www.opengis.net/sld" version="1.1.1" service="WMS">
> <sld:StyledLayerDescriptor version="1.0.0">
> <sld:NamedLayer>
> <sld:Name>bnk_district_boundary</sld:Name>
> <sld:Name>Bhq</sld:Name>
> </sld:NamedLayer>
> </sld:StyledLayerDescriptor>
> <sld:BoundingBox
> srsName="
http://www.opengis.net/gml/srs/epsg.xml#26912">
> <gml:coord>
> <gml:X>86.612183</gml:X>
> <gml:Y>22.626936</gml:Y>
> </gml:coord>
> <gml:coord>
> <gml:X>87.767677</gml:X>
> <gml:Y>23.635832</gml:Y>
> </gml:coord>
> </sld:BoundingBox>
> <sld:Output>
> <sld:Format>image/jpeg</sld:Format>
> <sld:Transparent>false</sld:Transparent>
> <sld:Size>
> <sld:Width>603</sld:Width>
> <sld:Height>476</sld:Height>
> </sld:Size>
> </sld:Output>
> <sld:Exceptions>application/vnd.ogc.se_xml</sld:Exceptions>
> </ogc:GetMap>
or shorter:
http://your.service-address.com/wms/services?request=GetMap&version=1.1.1&service=WMS&layers=bnk_district_boundary,Bhq&styles=&srs=EPSG:26912&bbox=86.612183,22.626936,87.767677,23.635832&format=image/jpeg&width=603&height=476Best regards, Andreas
--
l a t / l o n GmbH
Aennchenstrasse 19 53177 Bonn, Germany
phone ++49 +228 18496-0 fax ++49 +228 1849629
http://www.lat-lon.de http://www.deegree.org ------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
deegree-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-devel