GDAL raster access and shapepath
Bart van den Eijnden (OSGIS)
bartvde at XS4ALL.NL
Wed May 17 06:40:53 PDT 2006
Hi list,
using Mapserver 4.8.3 and GDAL 1.3.2 we have a problem accessing an ECW
file relative to the SHAPEPATH. If we use an absolute path in the DATA
statement all works fine.
So:
MAP
SHAPEPATH "/data/geopakhuis/"
and:
LAYER
DATA "aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw"
does not work (case 1), whereas
DATA "/data/geopakhuis/erogrid_nl2005/Aerogrid_NL2005_40cm.ecw"
does work (case 2).
Attached the log after setting CPL_DEBUG to ON.
Case 1:
[Wed May 17 15:22:09 2006] [error] [client 145.50.39.34] Wed May 17
15:22:09 2006 - msDrawRaster(): Unable to access file. (ae
rogrid_nl2005/Aerogrid_NL2005_40cm.ecw)
Case 2:
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW:
NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2
005_40cm.ecw): eErr = 0
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW: FileInfo:
SizeXY=690000,800000 Bands=3
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34]
OriginXY=8000,624000 CellIncrementXY=0.4,-0.4
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34]
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW:
projection=LOCAL, datum=WGS84
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] GDAL:
GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.
ecw) succeeds as ECW.
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34]
[Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECWRasterBand:
RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize=
5972 -> 750x450)
[Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] ECWRasterBand:
RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize=
5972 -> 750x450)
[Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] ECWRasterBand:
RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize=
5972 -> 750x450)
[Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] GDAL:
GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm
.ecw)
[Wed May 17 15:21:24 2006] [error] [client 145.50.39.34]
[Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] GDAL:
GDALDeregister_GTiff() called.
Any ideas what could be wrong?
Best regards,
Bart
More information about the MapServer-users
mailing list