[mapserver-users] querying to getting bounding box coordinates

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Nov 23 13:11:49 PST 2010


Hi,

One alternative is to make first a WFS request with attribute filter for finding the feature and let the client to catch the bounding box from the result.
These examples should work, first is Geoserver and another Mapserver. The latter is pointing to a point layer and therefore I queried two features for getting a reasonable bounding box.

http://sigma.openplans.org:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=states&maxfeatures=1
http://188.64.1.61/cgi-bin/osm-mapserver_i?service=wfs&version=1.1.0&request=getfeature&typename=POI_pub_restaurant&maxfeatures=2

These are just crude examples without the property filter. Queries can be build also so that they do not return attributes. I hope you'll see the idea and think if it could make sense for your use case.

-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand
Lähetetty: ti 23.11.2010 22:48
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] querying to getting bounding box coordinates
 
I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===========================
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca <http://www.afsc.ca>
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list