[mapserver-users] Mapserver PostGIS Points Layer coming up blank
Rahkonen Jukka
jukka.rahkonen at mmmtike.fi
Fri May 31 14:12:58 PDT 2013
Hi,
It can be the old STATUS=ON thing. Either change it to STATUS=DEFAULT in the mapfile or add &layers=all into the request.
Circle error means that Mapserver cannot find a symbol named "circle". You will find reading about symbols from Mapserver documents.
-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: 31. toukokuuta 2013 22:52
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Mapserver PostGIS Points Layer coming up blank
Dear Mapserver List,
I've progressed to the point where the following does not show any errors but the subsequent map image is blank/white.
I confirmed INPUT=POSTGIS shows up with mapserv -v and I know the table is constructed properly because I can display it easily in QGIS.
Any help debugging this would be greatly appreciated.
I was successful rendering shapefiles with my mapserver installation.
Another possible clue is that if I uncomment the STYLE/SYMBOL line I get an error it can't find the following:
unable to open file /ms4w/apps/gmap/htdocs/circle for reading
Install :
MapServer version 6.0.3 from MS4W
PostGreSQL 9.0.13
PostGIS 2.0
Map File :
MAP
NAME airports
EXTENT -180 -90 180 90
SIZE 1000 500
LAYER
CONNECTIONTYPE POSTGIS
NAME "airports"
CONNECTION "host=localhost dbname=Business user=#### password=#### port=5432"
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "geomll From airports"
STATUS ON
TYPE POINT
CLASS
NAME "airportsClass"
STYLE
#SYMBOL 'circle'
COLOR 255 22 22
END
END # Class
END # Layer
END # Map File
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/airports.map&layer=airports&mode=map
This produces a black background with a 1000 pixel by 500 pixel white space in Firefox.
More information about the MapServer-users
mailing list