Displaying classes in a layer

Wouter Schaubroeck wouter.schaubroeck at GMAIL.COM
Wed Dec 29 14:48:39 PST 2004


Hi all,

I'm just learning how to work with mapserver. I do this by following the
tutorial on http://terrasip.gis.umn.edu/projects/tutorial/.
But i'm stuck at example 1.3. My mapserver is configured correctly (I
think, because the two first are displayed correctly), and the mapfile
is also ok. But it doesn't work!!! What do I wrong?
This is the mapfile:


MAP
  IMAGETYPE      PNG
  EXTENT         201621.496941 -294488.285333 1425518.020722 498254.511514
  SIZE           400 300
  SHAPEPATH      "data"
  IMAGECOLOR     255 255 255

  PROJECTION
    "proj=laea"
    "ellps=clrk66"
    "lat_0=45"
    "lon_0=-100"
    #
    # Alternatively, you can specify an EPSG code.
    # "init=epsg:2163"
    #
  END

  # Start of LAYER DEFINITIONS ---------------------------------------------
  LAYER # States polygon layer begins here
    NAME states_poly
    DATA states_ugl
    STATUS DEFAULT
    TYPE POLYGON

    PROJECTION
      "init=epsg:4269"
    END

    CLASSITEM "CLASS"
    CLASS
      EXPRESSION 'land'
      COLOR 232 232 232
    END
    CLASS
      EXPRESSION 'water'
      COLOR 198 198 255
    END
  END # States polygon layer ends here

  LAYER # States line layer begins here
    NAME states_line
    DATA states_ugl
    STATUS DEFAULT
    TYPE LINE

    PROJECTION
      "init=epsg:4269"
    END

    CLASSITEM "CLASS"
    CLASS
      EXPRESSION 'land'
      COLOR 32 32 32
    END
  END # States line layer ends here
  # End of LAYER DEFINITIONS -------------------------------
END # end of map file

Thx in advance!!!

Wouter Schaubroeck



More information about the MapServer-users mailing list