It's a bit clumsy but the OGC Filter Encoding protocol forks fine (but I 
wouldn't want to key it into a browser by hand).  The output is gml which needs 
to parsed.


===========================
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-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David Hildebrand
Sent: Wednesday, November 24, 2010 12:14 PM
To: Rahkonen Jukka
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] querying to getting bounding box coordinates

Jukka:

I have my MapServer mapfile configured for a WFS service and I can perform 
GetCapabilities and GetFeature queries.  Is there a URL syntax to specify 
filter criteria?

Thanks.

===========================
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-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David Hildebrand
Sent: Wednesday, November 24, 2010 9:49 AM
To: Rahkonen Jukka
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] querying to getting bounding box coordinates

Thanks for the tip, Jukka.  I, too, know very little about mapscript and the 
documentation is sparse in terms of learning it.  I'm curious about WFS queries 
on a WMS instance.  I believe I have my mapfile set up correctly because the 
layer in question comes up as ows_type="WFS" when I do a WMS DescribeLayer.  
What else do I need?  Will WFS calls work with a WMS instance?

Thanks

===========================
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: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: Tuesday, November 23, 2010 3:12 PM
To: David Hildebrand
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] querying to getting bounding box coordinates

Hi,

Yes, they are WFS queries but you can send them to the same Mapserver service 
if you configure the mapfile properly. If you do not want to use WFS then I 
suppose you can do whatever you want with mapscript but that is something I do 
not know anything about. With some imagination it could be possible to do 
queries and get vectors out from WMS service and search the bounding box on 
client side (by using attribute filters inside SLD, or variable substitution 
inside DATA or FILTER, and by having KML as outputformat). Does not feel like a 
right way to do even it might be fun to experiment with. I suggest to read 
about mapscript http://mapserver.org/mapscript/index.html

-Jukka-


-----Alkuperäinen viesti-----
Lähettäjä: David Hildebrand [mailto:david.hildebr...@afsc.ca]
Lähetetty: ti 23.11.2010 23:31
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@lists.osgeo.org
Aihe: RE: [mapserver-users] querying to getting bounding box coordinates
 
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-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, November 23, 2010 2:12 PM
To: David Hildebrand; mapserver-users@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-boun...@lists.osgeo.org puolesta: David Hildebrand
Lähetetty: ti 23.11.2010 22:48
Vastaanottaja: mapserver-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

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





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


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


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

Reply via email to