[Geomoose-users] Updated Post: Using Mapserver Filter
Dan Little
danlittle at yahoo.com
Wed Feb 3 20:30:35 EST 2010
I believe you're looking for this:
http://www.geomoose.org/moose/howto/startup.html
>
>From: Rafe Hargrove <rafeh91 at msn.com>
>To: geomoose-users at lists.sourceforge.net
>Sent: Wed, February 3, 2010 5:16:32 PM
>Subject: [Geomoose-users] Updated Post: Using Mapserver Filter
>
>
>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/e07964e0/attachment.html
More information about the Geomoose-users
mailing list