Highlight Features

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Mon Aug 29 00:08:41 PDT 2005


Use 2 LAYERs. Draw the selection on top of the normal layer with a different color.

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Rob Sosnowski <rsosnowski at CABLEONE.NET> 08/28/05 8:09 am >>>
Hello All,

Using PHP/Mapscript 4.4.  Trying to highlight feature in polygon layer,
such as subdivisions.  I use:

   $layer->setFilter("");
   $sFilter = "('[subdivname]' = '$sSubDivsion')";
   $layer->setFilter($sFilter);

PROBLEM: ONLY THAT SPECIFIC FEATURE IS DRAWN.  If I use:

   $sFilter = "('[subdivname]' != '$sSubDivsion')";

PROBLEM: ALL FEATURES DRAWN EXCEPT ONE OF INTEREST, WHICH IS OK EXCEPT IN
PLACES WHERE THE BOUNDARY OF THE FEATURE OF INTEREST HAS NO SURROUNDING
POLYGONS.  WHEN THIS IS THE CASE, THE BOUNDARY OF FEATURE IS NOT SHOWN.


QUESTION: HOW DO I DRAW ALL FEATURES WITHIN POLYGON LAYER AND ALSO
HIGHLIGHT THE FEATURE(S) OF INTEREST IN A DIFFERENT COLOR

Thanks, Rob



More information about the MapServer-users mailing list