[mapserver-users] querying to getting bounding box coordinates

David Hildebrand David.Hildebrand at afsc.ca
Tue Nov 23 16:31:40 EST 2010


Jukka:

The examples you used were WFS queries.  I wasn't aware that WMS queries also supported filters?


===========================
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.


-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, November 23, 2010 2:12 PM
To: David Hildebrand; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] querying to getting bounding box coordinates

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

_______________________________________________
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