[mapserver-users] WMS rendering

Francesco Palermo palermo.frances at gmail.com
Thu Oct 16 08:04:18 PDT 2014


Hello,
I'm experimenting the use of Mapserver as WMS and I'm encountering some 
problems on map rendering. I'm using a shapefile as a map source and 
it's a map of points (generated by a csv using ogr2ogr - Could I use 
directly csv with Mapserver? I don't know). I can't get the rendering of 
this map using for example QGIS or this URL in the browser (which I hope 
it's correct):
http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=image/png&LAYERS=test&

This is the mapfile:
MAP
     NAME "test"
     STATUS ON
     SIZE 500 300
     IMAGETYPE PNG
     EXTENT 9.2990 43.0105 9.4894 43.0524
     UNITS METERS
     DEBUG 5
     PROJECTION
            "init=epsg:4269"
     END
     WEB
         TEMPLATE "template.html"
         IMAGEPATH "/var/www/html/tmp/"
         IMAGEURL "/tmp/"
         METADATA
             "wms_title"           "WMS Demo Server"
             "wms_onlineresource" "http://localhost/cgi-bin/mapserv?"
             "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"
             "wms_enable_request" "*"
         END
     END
     #IMAGECOLOR 255 255 255
     TRANSPARENT ON
     SHAPEPATH "oilspill/"
     OUTPUTFORMAT
       NAME "png"
       DRIVER AGG/PNG
       MIMETYPE "image/png"
       IMAGEMODE RGB
       EXTENSION "png"
       FORMATOPTION "GAMMA=0.75"
     END
     SYMBOL
       NAME "square"
       TYPE vector
       POINTS
         0 0
         0 1
         1 1
         1 0
         0 0
       END
       FILLED true
       ANCHORPOINT 0.5 0.5
     END
     LAYER
       NAME "test"
       TYPE POINT
       STATUS DEFAULT
           DATA "timestep24"
       DEBUG 5
       SIZEUNITS meters
       PROJECTION
            "init=epsg:4269"
       END
       METADATA
         "wms_title"    "test"
       END
       CLASSITEM "weight"
       CLASS
           STYLE
               COLOR "#1014FF"
               SYMBOL "square"
               SIZE 0.0019
           END
       END
     END
END

Any suggestions? Are there any errors in the mapfile? Or am I wrong in 
the procedure?

Thanks,
Francesco



More information about the MapServer-users mailing list