[mapserver-users] mapserver user can not make the point layer show ,
Stephen Woodbridge
woodbri at swoodbridge.com
Wed Aug 29 11:41:28 PDT 2012
Hi 李杨;
It is likely that you points are showing, but that you can not see them
as they are only one pixel large. Try this:
SYMBOL
NAME "circle"
TYPE ELLIPSE
FILLED TRUE
POINTS 1 1 END
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
SYMBOL "circle"
SIZE 5
END
END
-Steve W
On 8/29/2012 2: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-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list