[mapserver-users] FILTER and MapScript

Jim Burnett r00t at ntelos.net
Thu Nov 7 08:59:36 EST 2002


Here is what I do.
$layObj->setFilter ("([$shape_number]=$poly_id)");



-Jim
http://www.phpgis.org/


----- Original Message -----
From: "Guillaume SUEUR" <guillaume.sueur at khi2.fr>
To: "Liste MapServer" <mapserver-users at lists.gis.umn.edu>
Sent: Thursday, November 07, 2002 6:20 AM
Subject: [mapserver-users] FILTER and MapScript


> Hi there,
> I can't get throught setting a filter using MapScript in spite of the
> examples on the list archive.
> No filter nor Filteritem are set in the MapFile.
> the code is :
> $poLayer->setFilter("([$field]".$operator." '".$value."')");
> where operator can be < > <= >= <> or =
> $field the dbf field to compare the value with
> $value the value of the filter
>
> after execution of this code, all objects of the layer disappear.
> The filter looks a bit strong !
>
>
>
> --
> ---------------------------
> Guillaume SUEUR
> Ingénieur développement SIG
> GEOSIGNAL
> 25bis Avenue Marcel Dassault
> 31505 TOULOUSE CEDEX 5
> ----------------------------
>
>




More information about the mapserver-users mailing list