[GRASSLIST:1044] Re: gdal problem
Frank Warmerdam
warmerdam at pobox.com
Wed Aug 27 10:52:40 EDT 2003
Keith J. Forbes wrote:
> Hi. I am trying to import what I am pretty sure is an Arcinfo binary grid
> formatted file. The file was created from a grid of points in Arcview using
> the inverse distance weighting method. Specifically the command from Arcview
> was Theme|Convert to Grid. The file name is w001001x.adf.
>
> I installed Grass from sources but recall having difficulties installing gdal.
> I don't recall if I ever installed it or not. The only folder I have with
> gdal is the following:
>
> (/usr/local/share/gdal)
>
> [keith at siam1 gdal]$ ls -al
> total 568
> drwxr-xr-x 2 root root 4096 Jun 6 13:20 .
> drwxr-xr-x 15 root root 4096 Jul 22 17:20 ..
> -rw-r--r-- 1 root root 73770 Jun 6 13:20 datum.csv
> -rw-r--r-- 1 root root 10735 Jun 6 13:20 ellipsoid.csv
> -rw-r--r-- 1 root root 22351 Jun 6 13:20 gcs.csv
> -rw-r--r-- 1 root root 533 Jun 6 13:20 gdalicon.png
> -rw-r--r-- 1 root root 332781 Jun 6 13:20 pcs.csv
> -rw-r--r-- 1 root root 1599 Jun 6 13:20 prime_meridian.csv
> -rw-r--r-- 1 root root 7254 Jun 6 13:20 s57attributes.csv
> -rw-r--r-- 1 root root 20885 Jun 6 13:20 s57expectedinput.csv
> -rw-r--r-- 1 root root 30680 Jun 6 13:20 s57objectclasses.csv
> -rw-r--r-- 1 root root 9216 Jun 6 13:20 seed_2d.dgn
> -rw-r--r-- 1 root root 10315 Jun 6 13:20 stateplane.csv
> -rw-r--r-- 1 root root 15266 Jun 6 13:20 unit_of_measure.csv
>
>
> When I run r.in.gdal (accepting all defaults), I always get "Segmentation
> fault" as an error.
>
> QUESTIONS:
> Do I need to reinstall gdal? If not, why are my attempts at importing arcinfo
> binary grids (w001001x.adf) not working. Would appreciate any help.
Keith,
Arc/Info binary grid formats requires a directory of files including the
w001001x.adf file. I would suggest trying to run gdalinfo against the
file to see if the problem is general to GDAL or specific to the way it is
being used in GRASS.
If it crashes gdalinfo then you could either try to debug it via gdalinfo
(if you have the inclination) or you will need to file a bug report
including making the data available. if the bug is reproducable with gdalinfo
please file the bug report in GDAL's Bugzilla. If it only occurs in the
context of GRASS's r.in.gdal command, you should likely file it against
GRASS.
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