[MS4W-Users] Mapserver displays raster with blank tiles

Emmanuel Adegboye eaadegboye at googlemail.com
Thu Sep 26 06:19:52 EST 2013


Hello Mark.

Thanks for your response.

I did what you suggested and I found this line in the error file:

"[Thu Sep 26 12:09:42 2013].891000 Corrupt, empty or missing file
'./data/srtm.tif' for layer 'srtm' ... ignoring this missing data."

Apparently, I didn't properly define the location of the file path relative
to my map file, so I used the absolute path instead and it works fine now.
Thanks a lot.

Regards,

Emmanuel Adegboye


On 23 September 2013 14:08, Mark Volz <MarkVolz at co.lyon.mn.us> wrote:

>  Emmanuel,****
>
> ** **
>
> Turn on logging by adding the following two lines to your map file.  The
> error file might tell you if there is a problem in your map file.****
>
> ** **
>
> ** **
>
> MAP****
>
> …****
>
>                 CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_tmp/ms_error.txt"****
>
>                 DEBUG 5****
>
> ….****
>
> ** **
>
> ** **
>
> ** **
>
> Mark Volz, GISP****
>
> GIS Specialist****
>
> ** **
>
> ** **
>
> *From:* ms4w-users-bounces at lists.maptools.org [mailto:
> ms4w-users-bounces at lists.maptools.org] *On Behalf Of *Emmanuel Adegboye
> *Sent:* Monday, September 23, 2013 3:49 AM
> *To:* ms4w-users at lists.maptools.org
> *Subject:* [MS4W-Users] Mapserver displays raster with blank tiles****
>
> ** **
>
> 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/20130926/e196319e/attachment.htm 


More information about the MS4W-Users mailing list