[mapserver-users] Attribute query using PHP/MapScript

Stephen Lime steve.lime at dnr.state.mn.us
Thu Jul 12 13:48:48 EDT 2001


While I've not done this per se, the best way to do this would be to:

  - create a map file that would create maps showing all parcels and other data

now in the application:

  - do the mysql selection
  - use the resulting pins to create a custom expression for the parcel layer to 
    issolate just those parcels with matching pins
  - draw the map

You can make that expression "sticky" easily by storing the pins or by using
a straight mapserver CGI application and setting the expression dynamically
using the syntax "&map_parcels_class_expression=...&". That way you could
use PHP to do the query and initialize the mapping app.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Hossam Abdel Sayed <hossam at GeoAnalytics.com> 07/12/01 11:12AM >>>
Hi Jolks

I'm trying to build a page which allow the user to query the parcel data by
address, pin, and owner name. I first query the attribute table in MySQl
dtaabase and get a list of all parcel "pin"s. then i need to query the
parcel shapefile to highlight all the returned pin's.

Can any give tell me how to query the parcel shape file and highlight the
results in PHP/Mapscript ?? I'll apreciate if you can send me a link to a
similar example


Thanks alot

hossam
 




More information about the mapserver-users mailing list