[MS4W-Users] Mapserver displays raster with blank tiles
Emmanuel Adegboye
eaadegboye at googlemail.com
Mon Sep 23 03:48:47 EST 2013
Hello.
I'm using MapServer version 6.2.1 (MS4W 3.1.0-beta1).
My map files always display blank tiles, even with a GET MAP Request,
whenever I try to display raster images with mapserver.
Here's a copy of one of my map files. Hopefully someone can tell me what
I'm getting wrong.
# Map file created from QGIS project file C:/Program Files (x86)/Quantum
GIS Lisboa/test.qgs
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
NAME "QGIS-MAP"
# Map image size
SIZE 400 400
UNITS meters
EXTENT 429144.335090 662205.359359 996550.275768 937861.859359
FONTSET './fonts/fonts.txt'
SYMBOLSET './symbols/symbols.txt'
PROJECTION
'proj=utm'
'zone=31'
'datum=WGS84'
'units=m'
'no_defs'
END
# Background color for the map canvas -- change as desired
IMAGECOLOR 255 255 255
IMAGEQUALITY 95
IMAGETYPE agg
OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
END
# Legend
LEGEND
IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
# Web interface definition. Only the template parameter
# is required to display a map. See MapServer documentation
WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/ms4w/tmp/ms_tmp/'
# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/ms_tmp/'
# WMS server settings
METADATA
'ows_title' 'QGIS-MAP'
'ows_onlineresource' '
http://localhost/fcgi-bin/mapserv.exe?map=C:/ms4w/apps/pmapper/pmapper-4.3.1/config/default/oau2.map
'
'ows_srs' 'EPSG:32631'
'ows_enable_request' '*'
END
#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See
MapServer documentation
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
END
LAYER
NAME 'srtm'
TYPE RASTER
EXTENT 429144.335090 662205.359359 996550.275768 937861.859359
DATA
'../../ms4w/apps/pmapper/pmapper-4.3.1/config/default/data/srtm.tif'
METADATA
'ows_title' 'srtm'
END
STATUS OFF
PROJECTION
'proj=utm'
'zone=31'
'datum=WGS84'
'units=m'
'no_defs'
END
END
END
Regards,
Emmanuel Adegboye
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20130923/3bb0d50d/attachment.htm
More information about the MS4W-Users
mailing list