[Mapserver-users] Simple query
Eric Bridger
eric at gomoos.org
Mon Nov 3 02:00:47 PST 2003
1) You can display polygons in different colors by using CLASS
EXPRESSIONs in you map file. e.g.
LAYER
NAME "polys"
TYPE POLYGON
DATA "data/polys"
CLASS
EXPRESSION ([AREA] > 2000)
COLOR 255 0 0
END
CLASS
EXPRESSION ([AREA] <= 2000)
COLOR 0 255 0
END
END
2) You will need to use a DBF library/module to edit dbf files. I think
the mapscript lib only allows you to read dbf files. In perl I use:
XBase.
On Sat, 2003-11-01 at 13:37, Nicolas Boretos wrote:
> Hi,
>
> I have 2, seemingly simple questions.
>
> Does someone have an example of querying a map and displaying the polygons that fullfill that criteria in a different color;
>
> eg AREA > 2000
> Is this possible in the ms cgi, or do I need mapscript
>
> Is it possible to (over)write a field in a record in the dbf with mapscript?
>
> I am searching the list but figured I would ask anyway....
>
> regards,
>
> nicolas boretos
> P.S I am using ms3.4
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list