[mapserver-users] Extracting one polygon from a file

Steve Lime steve.lime at dnr.state.mn.us
Wed Aug 14 14:27:14 EDT 2002


Note that you don't need the expression in the last cass. By default if the last class has no expression it becomes the default expression.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Hankley, Chip" <Chip.Hankley at GASAI.Com> 08/09/02 04:56PM >>>
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