gdal 1.2.2 problem
Stefano Bonnin
stefano.bonnin at COMAI.TO
Wed Sep 22 05:34:41 PDT 2004
Hi all,
I have just installed GDAL 1.2.2 with MapServer 4.2.3 and I get the following error:
Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named '@_ctr_icb'.
Warning: [MapServer Error]: IReadBlock failed at X offset 0, Y offset 0: GDALRasterIO() failed: drawGDAL()
this is a simple raster layer:
LAYER
NAME "@_ctr_icb"
METADATA
"NAME" "@_ctr_icb"
END
DATA "ctr_icb.tif"
TYPE RASTER
STATUS ON
MAXSCALE 50000000
MINSCALE 0
END
and with gdalinfo (1.2.2 version) I obtain the following information on the tif image:
Driver: GTiff/GeoTIFF
Size is 3156, 3154
Coordinate System is `'
Origin = (1394366.840860,5002513.327460)
Pixel Size = (1.26804000,-1.26804000)
Metadata:
TIFFTAG_XRESOLUTION=7.8860998
TIFFTAG_YRESOLUTION=7.8860998
TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
Corner Coordinates:
Upper Left ( 1394366.841, 5002513.327)
Lower Left ( 1394366.841, 4998513.929)
Upper Right ( 1398368.775, 5002513.327)
Lower Right ( 1398368.775, 4998513.929)
Center ( 1396367.808, 5000513.628)
Band 1 Block=3156x3154 Type=Byte, ColorInterp=Palette
Color Table (RGB with 2 entries)
0: 255,255,255,255
1: 0,0,0,255
I have compiled gdal with:
./configure --with-ogr --with-pg=/usr/local/pgsql-8.0.0/bin/pg_config --with-geos=/usr/local/bin/geos-config
--with-static-proj4=../proj-4.4.8
and mapserver with:
./configure --with-proj=../proj-4.4.8/ --with-php=../php-4.3.8/ --with-postgis=/usr/local/pgsql-8.0.0/bin/pg_config
-with-freetype=../freetype-2.1.9 --with-gd=static,../gd-2.0.28 --without-tiff --with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-config --with-httpd=/sslwww/bin/httpd
the old compiled version with gdal 1.1.9 worked well. I have also tryed the 1.2.1 gdal version with the same result.
Thanks in advance.
RedS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20040922/a6544f30/attachment.htm>
More information about the MapServer-users
mailing list