[Geomoose-users] Using Mapserver Filter

Rafe Hargrove rafeh91 at msn.com
Sun Jan 31 00:22:44 EST 2010


I would like to pass a parameter to mapserver's filter command so that I can filter out records for a given ownerkey at startup.

 

A separate Java/JSP 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 with the ownerkey already set and used as a filter in MapServer.  

 

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/20100130/79da8a98/attachment.html


More information about the Geomoose-users mailing list