[mapserver-users] Still can't draw points
Rahkonen Jukka
jukka.rahkonen at mmmtike.fi
Mon Aug 5 12:12:21 PDT 2013
Hi,
You have still not defined the symbol "square" that you want to used for drawing.
Here comes a quick and not polished example that I have modified from your mapfile. It shows points for me with OpenJUMP with my data "roskis.shp".
MAP
DEBUG 5
CONFIG "MS_ERRORFILE" "c:\ms4w\tmp\points_error.txt"
CONFIG "PROJ_LIB" "C:/ms4w/proj/nad"
EXTENT -180 -90 180 90
#IMAGECOLOR 153 179 204
IMAGETYPE PNG24
SHAPEPATH "c:\ms4w\tmp"
#FONTSET data/fonts/fonts.list
UNITS DD
SIZE 1000 500 # Added
PROJECTION
"init=epsg:4326"
END
OUTPUTFORMAT
NAME png
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
END
WEB
METADATA
"ows_enable_request" "*"
"wms_bbox_extended" "true"
"wms_srs" "EPSG:4326"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\apps\points.map"
"wms_title" "Draw points example"
END
END
SYMBOL
NAME 'CIRCLE'
TYPE ellipse
FILLED true
POINTS
1 1
END
END
LAYER
NAME "city"
TYPE POINT
STATUS DEFAULT
DATA "c:\data\osm\waste_baskets.shp"
METADATA
"wms_srs" "EPSG:4326"
END
CLASS
STYLE
SYMBOL "CIRCLE"
SIZE 10
COLOR 255 1 1
OUTLINECOLOR 0 0 0
END
END
END
END
-Jukka Rahkonen-
________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Michael McInnis [mmcinnis59 at msn.com] puolesta
Lähetetty: 5. elokuuta 2013 21:05
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Still can't draw points
Dear mapserver-users,
This is a follow on question to my post friday. I made some changes suggested by Brent Fraser
but still haven't had a graphical success. I think something very basic is wrong with my set up for points.
Here is my new attempt, which still fails. I looked in the error log and it
seems to be treating the SYMBOL 'square' as a shapefile and says "unable to
open file".
Thanks
MAP
DEBUG 5
CONFIG "MS_ERRORFILE" "/media/D_Drive/www/gis/logs/error_file.log"
EXTENT -180 -90 180 90
#IMAGECOLOR 153 179 204
IMAGETYPE PNG24
SHAPEPATH data/
FONTSET data/fonts/fonts.list
UNITS DD
SIZE 1000 500 # Added
PROJECTION
"+proj=longlat +ellps=WGS84"
END
OUTPUTFORMAT
NAME png
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
END
WEB
IMAGEPATH "/media/D_Drive/www/gis/tmp/"
IMAGEURL "gis/tmp/"
END
LAYER
NAME "city"
TYPE POINT
STATUS DEFAULT
DATA "CityALL"
CLASS
STYLE
SYMBOL "square"
SIZE 10
COLOR 255 1 1
OUTLINECOLOR 0 0 0
END
END
END
END
Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701
More information about the MapServer-users
mailing list