GDAL raster access and shapepath

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Thu May 18 05:55:53 EDT 2006


Some more information on this issue.

If we use GDAL to access a TIFF file, SHAPEPATH is used.
If we use GDAL to access an ECW file, SHAPEPATH is not used!

How is this possible?

TIFF:
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL:
GDALOpen(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.au
x) succeeds as HFA.
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45]
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL:
GDALClose(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.a
ux)
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45]
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL:
GDALOpen(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.ti
f) succeeds as GTiff.
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45]
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL:
GDALClose(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.t
if)
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45]
[Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL:
GDALDeregister_GTiff() called.

ECW:
[Thu May 18 12:02:24 2006] [error] [client 145.50.148.45] Thu May 18
12:02:24 2006 - msDrawRaster(): Unable to access file.
(ahn_100/geogegevens/raster/landsdekkend/ahn_100.ecw)

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Bart van den Eijnden
(OSGIS)
Verzonden: woensdag 17 mei 2006 15:41
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] GDAL raster access and shapepath


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



Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060518/be77d426/attachment.html


More information about the mapserver-users mailing list