[mapserver-dev] mapserver user can not make the point layer show ,

Havard Tveite havard.tveite at umb.no
Thu Aug 30 00:24:48 PDT 2012


Dear Yang Li,

You need to use a symbol in order to have the points rendered

   SYMBOL
     NAME "circle"
     TYPE ellipse
     POINTS
       1 1
     END
   END


   LAYER
   ...
     CLASS
       STYLE
         SYMBOL 'circle'
         COLOR 100 255 80
         SIZE 1
       END # style
     END # class
   END # layer

Håvard

On 8/29/2012 8:00 PM, 李杨 wrote:
> I have a question.
>
> I set the mapfile to load postgis data. but I found that the layers of points can not show but lines layer can show. I don 't know why.
>
> for example :
>
> my mapfile is like this:
> -------------------------------------------
>
> MAP
> NAME places
> STATUS ON
> SIZE 800 800
> EXTENT -8013001.590032 5036601.758317 -7907306.249345 5178361.105787
> #EXTENT -8006189.467511 5068117.258598 -7920667.499041 5175889.025208
> UNITS METERS
>
> IMAGECOLOR 100 100 100
> WEB
> IMAGEPATH "/var/www/output/"
> IMAGEURL "/output/"
> END
>
> PROJECTION
> "init=epsg:3857"
>
> END
>
> LAYER
> STATUS ON
> TYPE POINT
> CONNECTIONTYPE postgis
> CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432"
> NAME "places0"
> DATA "geometry from osm_new_places using unique osm_id using SRID=3857"
> CLASS
> COLOR 100 255 80
> END
> END
>
> LAYER
> STATUS on
> TYPE Line
> CONNECTIONTYPE postgis
>
> CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432"
> NAME "railways"
> DATA "geometry from osm_new_railways using unique osm_id using SRID=3857"
>
> CLASS
> COLOR 255 100 80
>
> -------------------------------------------
>
> railways can show but the places0 not show.
>
>
>
>
> --
> Yang Li
> GIS Developer
> P.R.China
>
>
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev


More information about the mapserver-dev mailing list