<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>I believe you're looking for this:</div><div><span><a target="_blank" href="http://www.geomoose.org/moose/howto/startup.html">http://www.geomoose.org/moose/howto/startup.html</a></span></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> Rafe Hargrove <rafeh91@msn.com><br><b><span style="font-weight: bold;">To:</span></b> geomoose-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, February 3, 2010 5:16:32 PM<br><b><span style="font-weight: bold;">Subject:</span></b>
[Geomoose-users] Updated Post: Using Mapserver Filter<br></font><br>
<style><!--
.hmmessage P
{
margin:0px;padding:0px;}
body.hmmessage
{
font-size:10pt;font-family:Verdana;}
--></style>
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. <br>
<br>Any ideas how best to do this in GeoMoose?<br> <br>Thanks for any and all help,<br>Rafe<br> <br>______________________________________________________________<br>MAP<br> SIZE 800 650<br> EXTENT -13888695.571283 2821332.743118 -8908902.824881 6340349.019812<br> UNITS METERS <br> STATUS ON<br> PROJECTION<br> "init=epsg:900913" <br> END<br> INCLUDE "../../geomoose_globals.map"<br> <br> <br> LAYER<br> NAME 'parcel'<br> TYPE POLYGON<br> STATUS ON<br> OPACITY 30 <br> FILTER "ownerkey='%myownerkey%' "<br> <br> CONNECTIONTYPE postgis<br> CONNECTION "user=postgres password=XXXXXX dbname=XXXXXX host=localhost"
<br> <br> DATA 'wkb_geometry from (select gid, ownerkey, astext(wkb_geometry) as wkt_geometry, wkb_geometry from parcel) as myparcel using unique gid'<br> <br> CLASS<br> NAME "parcel"<br> style <br> COLOR 0 150 0<br> OUTLINECOLOR 0 255 0 <br> WIDTH 3<br> end<br> end<br> METADATA<br> 'identify_record'
'identify.html'<br> END<br> <br> END<br>END<br><br>                                           
</div></div></blockquote><div style="position:fixed"></div>
<!-- cg3.c2.mail.re1.yahoo.com compressed/chunked Tue Feb 2 06:25:26 PST 2010 -->
</div><br>
</body></html>