polygon as point

Richard Jansen richardjansen at TMOP.NL
Wed Feb 16 23:46:59 PST 2005


Hi List,

I want to draw an polygon shapefile as a pointlayer, each polygon one point
in the center of it. Below my mapfile snippet. What I get is still a
polygonlayer with a dashed outline (little red points). What's wrong?

thanks!
Richard

  LAYER
    NAME "mypolygons"
    TYPE POINT
    CLASSITEM mp
    DATA mp
    STATUS ON
    UNITS meters
    TEMPLATE "templates/mypolygons.html"
    CLASS
      STYLE
 COLOR 255 0 0
 OUTLINECOLOR 0 0 0
      END
    END
    METADATA
      WMS_TITLE "My polygons"
      WMS_ABSTRACT "My polygons"
      WMS_SRS "epsg:28992"
    END
  END



More information about the MapServer-users mailing list