[GRASSLIST:3130] r.in.gdal failing
Philipp Molzer
phil at molzer.net
Sat Apr 10 23:45:19 EDT 2004
Hi,
Along with others that I've seen posting, I have been unable to get
r.in.gdal in grass 5.0.3 to work.
I am getting the "ERROR 4: <any filename> not recognised as a supported
file format. " on any raster I try to import, including ones which I
have before sucessfully imported in grass 5.0.1.
I built gdal-1.2.0b libs from source with
./configure --prefix=/usr/local --with-cfitsio --with-hdf4
--with-jasper --with-xerces --without-netcdf
which also built and installed fine.
I configured the source build for grass with
CFLAGS="-mcpu=k6 -O3 -Wall" LDFLAGS="-s" ./configure
--prefix=/usr/local/grass5.0.3 --with-dbm
--with-dbm-includes=/usr/include/gdbm --with-dbm-libs=/usr/lib
--with-gdal=/usr/local/bin/gdal-config
It built and installed without errors.
For example:
I try to import a DEM I got from the EROS seamless server. It is in the
form of an ArcGrid, which is a set of files.
r.in.gdal input=W001001X.ADF output=tile1
ERROR 4: `W001001X.ADF' not recognised as a supported file format.
but this works:
gdalinfo W001001X.ADF
Driver: AIG/Arc/Info Binary Grid
Size is 5954, 3001
Coordinate System is:
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4269"]]
Origin = (-75.041667,42.182500)
Pixel Size = (0.00027778,-0.00027778)
Corner Coordinates:
Upper Left ( -75.0416667, 42.1825000) ( 75d 2'30.00"W, 42d10'57.00"N)
Lower Left ( -75.0416667, 41.3488889) ( 75d 2'30.00"W, 41d20'56.00"N)
Upper Right ( -73.3877778, 42.1825000) ( 73d23'16.00"W, 42d10'57.00"N)
Lower Right ( -73.3877778, 41.3488889) ( 73d23'16.00"W, 41d20'56.00"N)
Center ( -74.2147222, 41.7656944) ( 74d12'53.00"W, 41d45'56.50"N)
Band 1 Block=373x4 Type=Float32, ColorInterp=Undefined
Min=-1.971 Max=1266.822
NoData Value=-3.40282e+38
I hope someone help me to debug r.in.gdal and to get it working.
thanks,
Phil
More information about the grass-user
mailing list