[GRASSLIST:2402] Re: Fun with GDAL -III
Frank Warmerdam
warmerdam at pobox.com
Thu Jan 29 15:48:44 EST 2004
SWlab wrote:
> Hello,
>
> I need to import a ArcInfo Grid file in my current location (file *.adf).
> Here's a copy of the result of r.in.gdal and gdalinfo
> **************
> GRASS:/home/storage/Foreplay.Misc/mrlc_utm_cl > r.in.gdal i=w001001.adf o=MRLC
> lo=NY.MRLC
> ERROR 4: `w001001.adf' not recognised as a supported file format.
>
> GRASS:/home/storage/Foreplay.Misc/mrlc_utm_cl > gdalinfo w001001.adf
> ERROR 4: `w001001.adf' not recognised as a supported file format.
>
> GDALOpen failed - 4
> `w001001.adf' not recognised as a supported file format.
> **************
> Gdal-1.1.9 compiled on a linux/SuSE8.2 machine without the grass option,
> grass53-cvs040123 with the --with-gdal option.
> According to the doc, the adf format should be recognized. Am I missing
> something ?
> FYI, the file in question can be accessed here:
> http://new-gis.mannlib.cornell.edu/CUGIR_Data/36mlt.tar.gz
> Be careful, it's huge 27.2Mb in targzipped.
P,
It worked fine for me.
warmerda at gdal2200[166]% gdalinfo mrlc_utm_cl
GDAL: GDALOpen(mrlc_utm_cl) succeeds as AIG.
Driver: AIG/Arc/Info Binary Grid
Size is 21948, 16698
Coordinate System is:
PROJCS["UTM Zone 18, Northern Hemisphere",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4326"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-75],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["METERS",1]]
Origin = (96232.198775,4995773.222690)
Pixel Size = (30.84279904,-30.84279904)
Corner Coordinates:
Upper Left ( 96232.199, 4995773.223) ( 80d 7'22.77"W, 45d 0'1.35"N)
Lower Left ( 96232.199, 4480760.164) ( 79d45'20.71"W, 40d22'46.56"N)
Upper Right ( 773169.952, 4995773.223) ( 71d31'48.94"W, 45d 3'45.68"N)
Lower Right ( 773169.952, 4480760.164) ( 71d46'46.68"W, 40d25'57.52"N)
Center ( 434701.075, 4738266.693) ( 75d47'54.49"W, 42d47'38.99"N)
Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined
Min=0.000 Max=92.000
NoData Value=255
GDAL: GDALClose(mrlc_utm_cl)
GDAL: GDALDeregister_GTiff() called.
Note, don't give the bare .adf filename or it won't work for some
reason. Even ./w001001.adf should work but w001001.adf won't.
Normally I give the name of the directory containing the w001001.adf
file since internally that is what is needed.
BTW, I just committed a fix in CVS to make it so that a bare "w001001.adf"
will work. This quirk has caused problems a number of times.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the grass-user
mailing list