polygon as point

Richard Jansen richardjansen at TMOP.NL
Thu Feb 17 02:46:59 EST 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