[mapserver-users] White Picture

Fawcett, David David.Fawcett at state.mn.us
Tue Jun 2 20:37:00 PDT 2009


It sounds like MapServer can't find the raster that you are using as the
data source for your layer.  Have you set a SHAPEPATH at the MAP level?
I am guessing that you either need to put the path to your raster in
SHAPEPATH, or put the absolute path to your raster in the LAYER DATA
statement.  

If you have a file named 'argentina_gg' in the same directory as your
map file or you have correctly specified the path and file name
correctly, it could be a permissions issue.

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gonzalo
Lionel Rodriguez
Sent: Tuesday, June 02, 2009 6:56 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] White Picture


Hi everyone,

I have a problem with my mapserver when i test the map, with shp2img i
have this error:

# ./shp2img -m
/home/orsep/public_html/gis/mapoteca/presas_gis/presas_gis.map
-o /home/orsep/public_html/gis/tocado.png -all_debug 3
[Tue Jun  2 20:53:25 2009].653282 msLoadMap(): 0.002s
[Tue Jun  2 20:53:25 2009].655864 msDrawRasterLayerLow(Argentina):
entering. [Tue Jun  2 20:53:25 2009].656424 msDrawRaster(): Unable to
access file. argentina_gg using full path argentina_gg [Tue Jun  2
20:53:25 2009].656438 Unable to open file argentina_gg for layer
Argentina ... fatal error. [Tue Jun  2 20:53:25 2009].663669
msDrawMap(): Image handling error. Failed to draw layer named
'Argentina'.
msDrawMap(): Image handling error. Failed to draw layer named
'Argentina'. <br>
msDrawRaster(): Unable to access file. argentina_gg using full path
argentina_gg <br>

The layer configuration is:

LAYER
 NAME 'Argentina'
 DATA 'argentina_gg'
 STATUS ON
 PROJECTION
  'init=epsg:4326'
 END

 TYPE RASTER
 TRANSPARENCY 50
 TOLERANCE 7
 TOLERANCEUNITS pixels

 METADATA
  WMS_SRS  'epsg:4326'
  WMS_TITLE 'WMSTitel'
  WMS_FEATURE_INFO_MIME_TYPE 'text/html'
 END #METADATA

END #LAYER


Any idea?

Regards
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list