[Geomoose-users] Updated Post: Using Mapserver Filter
Rafe Hargrove
rafeh91 at msn.com
Wed Feb 3 18:16:32 EST 2010
I would like to pass a parameter to mapserver's filter command so that I can filter out records for a person selected from a third party, Java/JSP application. I see where I can pass a parameter in GeoMoose's map source definition. Can I dynamically set this parameter based on a person selected from a separate Java/JSP application? This application is used to identify the owner for which we would like to see a map of owned properties. I would like to click on a URL which opens GeoMoose, SOMEHOW dynamically sets a selected ownerkey, and passes this value as a parameter to MapServer. MapServer would use this parameter to dynamically set the Filter value.
Any ideas how best to do this in GeoMoose?
Thanks for any and all help,
Rafe
______________________________________________________________
MAP
SIZE 800 650
EXTENT -13888695.571283 2821332.743118 -8908902.824881 6340349.019812
UNITS METERS
STATUS ON
PROJECTION
"init=epsg:900913"
END
INCLUDE "../../geomoose_globals.map"
LAYER
NAME 'parcel'
TYPE POLYGON
STATUS ON
OPACITY 30
FILTER "ownerkey='%myownerkey%' "
CONNECTIONTYPE postgis
CONNECTION "user=postgres password=XXXXXX dbname=XXXXXX host=localhost"
DATA 'wkb_geometry from (select gid, ownerkey, astext(wkb_geometry) as wkt_geometry, wkb_geometry from parcel) as myparcel using unique gid'
CLASS
NAME "parcel"
style
COLOR 0 150 0
OUTLINECOLOR 0 255 0
WIDTH 3
end
end
METADATA
'identify_record' 'identify.html'
END
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100203/4d9a3d29/attachment.html
More information about the Geomoose-users
mailing list