PHP Highlight list of Parcels Passed In

Steve Lehr lehrs at ERAU.EDU
Sat Jan 22 18:37:43 EST 2005


I'm trying to write some PHP that I can send extents and list of parcels to
get it to highlight the parcels.

I'd like to highlight all the found parcels in RED.

My php gets a variable by post called parcels and contains at this time a
semi colon delimited list of ids in the attribute column QPID of the
parcels.dbf.

  LAYER
    NAME "selected_parcels"
    DATA parcels
    STATUS DEFAULT
    TYPE POLYGON
    CLASSITEM QPID
    CLASS
      EXPRESSION "/%parcels%/"
      COLOR 255 0 0
    END
  END


I've got my extents.  I've got the list of parcels.  Now I want to highlight
the list of parcels with something like the below.  But I have to do
something in php to take that ; delimited list and the turn on all the
matching attributes.  (I belive its a QUERYMAP with MULTIPLE_SELECT) but I'm
having trouble getting my brain around what I need to code - might someone
have a sample.

Thanks

Steven Lehr
Assistant Professor
Freshmen Program
College of Engineering
Embry-Riddle Aeronautical University (LB159)
600 S. Clyde Morris Blvd.
Daytona Beach, FL 32114-3900
386-226-7740



More information about the mapserver-users mailing list