[mapserver-users] Extracting one polygon from a file
Hankley, Chip
Chip.Hankley at GASAI.Com
Fri Aug 9 14:56:33 PDT 2002
in your layer definition
...
CLASSITEM 'STATE_NAME'
CLASS
#Show Michigan as RED
EXPRESSION 'michigan'
COLOR 255 0 0
OUTLINECOLOR 0 0 0
END
CLASS
#Optionally, show everthing else as white
EXPRESSION /./
COLOR 255 255 255
OUTLINECOLOR 0 0 0
END
...
You could certainly add labels if you want, but that has nothing to do with
which state draws.
-----Original Message-----
From: Allan Panitch [mailto:allanp at campeb.org]
Sent: Friday, August 09, 2002 4:14 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] Extracting one polygon from a file
I hope this is simple.
I have a shp file of the USA which is just a bunch of polygons in a shp
file with a dbf of the attributes.
I would like to just display michigan from this file.
So in my map file I have a layer which displays that and the surrounding
states, I would like to omit the other polygons (states).
So in that layer I added
LABELITEM "STATE_NAME" which is the valid label in the .dbf file.
and the value is "michigan"
So I tried something under class like EXPRESSION STATE_NAME=michigan
but that did not seem to do the trick.
Any ideas on how to extract a polygon for 1 layer?
Thanks
al
On Thu, 11 Jul 2002, Al wrote:
> I am hoping and thinking this is a simple question.
> How would I increase the thicknes of a layer of lines..like roads?
> It looks to default to a single pixel, but I would like the lines to be
> around 4-5 pixels thick.
> tx
> al
>
>
>
More information about the MapServer-users
mailing list