[GRASSLIST:1041] gdal problem

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@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.

Thanks in advance,
Keith

........what happens when I run r.in.gdal....................
GRASS:/usr/local/share/applications > r.in.gdal

OPTION: Bin raster file to be imported
     key: input
required: YES
enter option > /home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

You have chosen:
  input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf
Is this correct? (y/n) [y]

OPTION: Band to select (default is all bands)
     key: band
required: NO
enter option >

OPTION: Name for resultant raster map
     key: output
required: YES

Enter raster file name
Enter 'list' for a list of existing raster files
Hit RETURN to cancel request

testadf

<testadf>

OPTION: Name of location to read projection from for GCPs transformation
     key: target
required: NO
enter option >

OPTION: Title for resultant raster map
     key: title
  format: "phrase"
required: NO
enter option >

OPTION: Name for new location to create
     key: location
required: NO
enter option >

FLAG: Set the following flag?
    Override projection (use locations projection)?(y/n) [n]

FLAG: Set the following flag?
    Extend location extents based on new dataset.?(y/n) [n]
Segmentation fault

--
k|J|f

should have added that I am using Redhat 9.0 (GNU/Linux)

On Wednesday 27 August 2003 03:19 pm, 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@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.

Thanks in advance,
Keith

........what happens when I run r.in.gdal....................
GRASS:/usr/local/share/applications > r.in.gdal

OPTION: Bin raster file to be imported
     key: input
required: YES
enter option > /home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

You have chosen:
  input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf
Is this correct? (y/n) [y]

OPTION: Band to select (default is all bands)
     key: band
required: NO
enter option >

OPTION: Name for resultant raster map
     key: output
required: YES

Enter raster file name
Enter 'list' for a list of existing raster files
Hit RETURN to cancel request

> testadf

<testadf>

OPTION: Name of location to read projection from for GCPs transformation
     key: target
required: NO
enter option >

OPTION: Title for resultant raster map
     key: title
  format: "phrase"
required: NO
enter option >

OPTION: Name for new location to create
     key: location
required: NO
enter option >

FLAG: Set the following flag?
    Override projection (use locations projection)?(y/n) [n]

FLAG: Set the following flag?
    Extend location extents based on new dataset.?(y/n) [n]
Segmentation fault

--
k|J|f

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@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@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent

Keith,

From what I remember, Arc grids are directories with

some files in it and also there are some files that
belong to the grid inside a folder called info so,
just one file will not do the trick

Have you tried running gdal on the directory instead
of one file? Something like this:

r.in.gdal /home/keith/grass5/datasrc/hadrm/a2c_con/etp

Just my 2 cents...

Daniel

--- "Keith J. Forbes" <listsemail@gmx.net> 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@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.

Thanks in advance,
Keith

........what happens when I run
r.in.gdal....................
GRASS:/usr/local/share/applications > r.in.gdal

OPTION: Bin raster file to be imported
     key: input
required: YES
enter option >

/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

You have chosen:

input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

Is this correct? (y/n) [y]

OPTION: Band to select (default is all bands)
     key: band
required: NO
enter option >

OPTION: Name for resultant raster map
     key: output
required: YES

Enter raster file name
Enter 'list' for a list of existing raster files
Hit RETURN to cancel request
> testadf
<testadf>

OPTION: Name of location to read projection from
for GCPs transformation
     key: target
required: NO
enter option >

OPTION: Title for resultant raster map
     key: title
  format: "phrase"
required: NO
enter option >

OPTION: Name for new location to create
     key: location
required: NO
enter option >

FLAG: Set the following flag?
    Override projection (use locations
projection)?(y/n) [n]

FLAG: Set the following flag?
    Extend location extents based on new
dataset.?(y/n) [n]
Segmentation fault

--
k|J|f

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

On Wednesday 27 August 2003 03:52 pm, Frank Warmerdam wrote:

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@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,

Hi Frank,

I ran gdalinfo. Results:

> gdalinfo w001001x.adf
ERROR 4: `w001001x.adf' not recognised as a supported file format.

GDALOpen failed - 4
`w001001x.adf' not recognised as a supported file format.

any idea??

thanks,
Keith

--
k|J|f

Thanks Daniel. Tried your suggestion and ...

GRASS:~/grass5/datasrc/hadrm/a2c_con/tmed > r.in.gdal input=~/grass5/datasrc/hadrm/a2c_con/etp output=etp
Segmentation fault

Anyone has any ideas?

Keith

On Wednesday 27 August 2003 04:54 pm, Daniel Victoria wrote:

Keith,

From what I remember, Arc grids are directories with
some files in it and also there are some files that
belong to the grid inside a folder called info so,
just one file will not do the trick

Have you tried running gdal on the directory instead
of one file? Something like this:

r.in.gdal /home/keith/grass5/datasrc/hadrm/a2c_con/etp

Just my 2 cents...

Daniel

--- "Keith J. Forbes" <listsemail@gmx.net> 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@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.
>
> Thanks in advance,
> Keith
>
> ........what happens when I run
> r.in.gdal....................
> GRASS:/usr/local/share/applications > r.in.gdal
>
> OPTION: Bin raster file to be imported
> key: input
> required: YES
> enter option >

/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

> You have chosen:

input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

> Is this correct? (y/n) [y]
>
> OPTION: Band to select (default is all bands)
> key: band
> required: NO
> enter option >
>
> OPTION: Name for resultant raster map
> key: output
> required: YES
>
> Enter raster file name
> Enter 'list' for a list of existing raster files
> Hit RETURN to cancel request
>
> > testadf
>
> <testadf>
>
> OPTION: Name of location to read projection from
> for GCPs transformation
> key: target
> required: NO
> enter option >
>
> OPTION: Title for resultant raster map
> key: title
> format: "phrase"
> required: NO
> enter option >
>
> OPTION: Name for new location to create
> key: location
> required: NO
> enter option >
>
> FLAG: Set the following flag?
> Override projection (use locations
> projection)?(y/n) [n]
>
> FLAG: Set the following flag?
> Extend location extents based on new
> dataset.?(y/n) [n]
> Segmentation fault
>
>
> --
> k|J|f

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

--
k|J|f

Keith,

I just read gdal page and it says:
"The projections support (read if a prj.adf file is
available) is quite limited. "

Maybee that's the problem? Is your grid projected?

--- "Keith J. Forbes" <listsemail@gmx.net> wrote:

Thanks Daniel. Tried your suggestion and ...

GRASS:~/grass5/datasrc/hadrm/a2c_con/tmed >
r.in.gdal input=~/grass5/datasrc/hadrm/a2c_con/etp
output=etp
Segmentation fault

Anyone has any ideas?

Keith

On Wednesday 27 August 2003 04:54 pm, Daniel
Victoria wrote:
> Keith,
>
> From what I remember, Arc grids are directories
with
> some files in it and also there are some files
that
> belong to the grid inside a folder called info so,
> just one file will not do the trick
>
> Have you tried running gdal on the directory
instead
> of one file? Something like this:
>
> r.in.gdal
/home/keith/grass5/datasrc/hadrm/a2c_con/etp
>
> Just my 2 cents...
>
> Daniel
>
> --- "Keith J. Forbes" <listsemail@gmx.net> 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@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.
> >
> > Thanks in advance,
> > Keith
> >
> > ........what happens when I run
> > r.in.gdal....................
> > GRASS:/usr/local/share/applications > r.in.gdal
> >
> > OPTION: Bin raster file to be imported
> > key: input
> > required: YES
> > enter option >
>
>

/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

>
> > You have chosen:
>
>

input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf

>
> > Is this correct? (y/n) [y]
> >
> > OPTION: Band to select (default is all bands)
> > key: band
> > required: NO
> > enter option >
> >
> > OPTION: Name for resultant raster map
> > key: output
> > required: YES
> >
> > Enter raster file name
> > Enter 'list' for a list of existing raster files
> > Hit RETURN to cancel request
> >
> > > testadf
> >
> > <testadf>
> >
> > OPTION: Name of location to read projection
from
> > for GCPs transformation
> > key: target
> > required: NO
> > enter option >
> >
> > OPTION: Title for resultant raster map
> > key: title
> > format: "phrase"
> > required: NO
> > enter option >
> >
> > OPTION: Name for new location to create
> > key: location
> > required: NO
> > enter option >
> >
> > FLAG: Set the following flag?
> > Override projection (use locations
> > projection)?(y/n) [n]
> >
> > FLAG: Set the following flag?
> > Extend location extents based on new
> > dataset.?(y/n) [n]
> > Segmentation fault
> >
> >
> > --
> > k|J|f
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
design software
> http://sitebuilder.yahoo.com

--
k|J|f

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Keith J. Forbes wrote:
  > Hi Frank,

I ran gdalinfo. Results:

> gdalinfo w001001x.adf
ERROR 4: `w001001x.adf' not recognised as a supported file format.

GDALOpen failed - 4
`w001001x.adf' not recognised as a supported file format.

any idea??

Keith,

Try it on the directory or the hdf.adf file. If this still doesn't work
file a bug report and I will dig into what is happening.

Best regards,

--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent

On Wednesday 27 August 2003 06:02 pm, you wrote:

Keith J. Forbes wrote:
  > Hi Frank,
>
> I ran gdalinfo. Results:
> > gdalinfo w001001x.adf
>
> ERROR 4: `w001001x.adf' not recognised as a supported file format.
>
> GDALOpen failed - 4
> `w001001x.adf' not recognised as a supported file format.
>
> any idea??

Keith,

Try it on the directory or the hdf.adf file. If this still doesn't work
file a bug report and I will dig into what is happening.

Best regards,

--
k|J|f

Thanks for staying with this Frank. Here are the results of what you suggested along with a couple of other .adf files from the project dir:

GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp output=etp
Segmentation fault

GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/hdr.adf output=etp
Segmentation fault

GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/sta.adf output=etp
Segmentation fault

GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/dblbnd.adf output=etp
Segmentation fault

here's some gdal-config info that may help (??)

GRASS:~/grass5/datasrc/hadrm/a2c_con > gdal-config --libs
-L/usr/local/lib -lgdal.1.1
GRASS:~/grass5/datasrc/hadrm/a2c_con > gdal-config --version
1.1.8
GRASS:~/grass5/datasrc/hadrm/a2c_con > gdal-config --formats
gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp gif jpeg png
GRASS:~/grass5/datasrc/hadrm/a2c_con > gdal-config --cflags
-I/usr/local/include
GRASS:~/grass5/datasrc/hadrm/a2c_con > gdal-config --ogr-enabled
yes

Would updating to 1.1.9 help?

Thanks again,
Keith

> Would updating to 1.1.9 help?

Keith,

While there have been a few improvements to arc/info binary grid support
I doubt updating to 1.1.9 will help; however, you should update to the
GDAL night snapshot before reporting a bug via bugzilla.

Best regards,

--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent

On Wednesday 27 August 2003 06:27 pm, you wrote:

Keith J. Forbes wrote:
> On Wednesday 27 August 2003 06:14 pm, you wrote:
>> > Would updating to 1.1.9 help?
>>
>>Keith,
>>
>>While there have been a few improvements to arc/info binary grid support
>>I doubt updating to 1.1.9 will help; however, you should update to the
>>GDAL night snapshot before reporting a bug via bugzilla.
>>
>>Best regards,
>
> Frank. Thanks, was actually about to report when your email arrived. How
> do I update to the
>
>>GDAL night snapshot before reporting a bug via bugzilla.??
>
> (Linux newbie, sorry)

Keith,

Download, build and install:

   ftp://ftp.remotesensing.org/gdal/daily/gdal-cvs-030827.tar.gz

If you aren't very confident about doing that, just report the bug and I
will try it. Note you will have to make the problem data available.
Either by attaching to the bugzilla bug report (if it is small, say 2MB or
less) or by making it available to me some other way.

Best regards,

--
k|J|f

Thanks Frank. Actually, it was the night snapshot part that threw me :). Can
do tarball installations.

Tried gdalinfo from outside of project directory (above) and it worked. Within
etp, on .adf files, no such luck.

r.in.gdal continues with segmentation fault error.

will install latest snapshot and let you know.

Best,
Keith

-------
from directory above project directory (etp)

GRASS:~/grass5/datasrc/hadrm/a2c_con > gdalinfo etp
Driver: AIG/Arc/Info Binary Grid
Size is 280, 578
Coordinate System is `'
Origin = (81427.250000,577941.764648)
Pixel Size = (1000.000000,-1000.000000)
Corner Coordinates:
Upper Left ( 81427.250, 577941.765)
Lower Left ( 81427.250, -58.235)
Upper Right ( 361427.250, 577941.765)
Lower Right ( 361427.250, -58.235)
Center ( 221427.250, 288941.765)
Band 1 Block=280x4 Type=Float32, ColorInterp=Undefined
  Min=1093.500 Max=2000.600
  NoData Value=-3.40282e+38

GRASS:~/grass5/datasrc/hadrm/a2c_con > gdalinfo etp/w001001x.adf
Driver: AIG/Arc/Info Binary Grid
Size is 280, 578
Coordinate System is `'
Origin = (81427.250000,577941.764648)
Pixel Size = (1000.000000,-1000.000000)
Corner Coordinates:
Upper Left ( 81427.250, 577941.765)
Lower Left ( 81427.250, -58.235)
Upper Right ( 361427.250, 577941.765)
Lower Right ( 361427.250, -58.235)
Center ( 221427.250, 288941.765)
Band 1 Block=280x4 Type=Float32, ColorInterp=Undefined
  Min=1093.500 Max=2000.600
  NoData Value=-3.40282e+38

GRASS:~/grass5/datasrc/hadrm/a2c_con > gdalinfo etp/hdr.adf
Driver: AIG/Arc/Info Binary Grid
Size is 280, 578
Coordinate System is `'
Origin = (81427.250000,577941.764648)
Pixel Size = (1000.000000,-1000.000000)
Corner Coordinates:
Upper Left ( 81427.250, 577941.765)
Lower Left ( 81427.250, -58.235)
Upper Right ( 361427.250, 577941.765)
Lower Right ( 361427.250, -58.235)
Center ( 221427.250, 288941.765)
Band 1 Block=280x4 Type=Float32, ColorInterp=Undefined
  Min=1093.500 Max=2000.600
  NoData Value=-3.40282e+38
--------------

within etp

GRASS:~/grass5/datasrc/hadrm/a2c_con/etp > gdalinfo hdr.adf
ERROR 4: `hdr.adf' not recognised as a supported file format.

GDALOpen failed - 4
`hdr.adf' not recognised as a supported file format.

GRASS:~/grass5/datasrc/hadrm/a2c_con/etp > gdalinfo w001001x.adf
ERROR 4: `w001001x.adf' not recognised as a supported file format.

GDALOpen failed - 4
`w001001x.adf' not recognised as a supported file format.
---------

trying r.in.gdal

GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=etp output=etp
Segmentation fault
GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=etp output=etpnew
Segmentation fault
GRASS:~/grass5/datasrc/hadrm/a2c_con > cd etp
GRASS:~/grass5/datasrc/hadrm/a2c_con/etp > r.in.gdal input=w001001x.adf
output=etp
ERROR 4: `w001001x.adf' not recognised as a supported file format.

GRASS:~ > r.in.gdal input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/
output=etp1
Segmentation fault
GRASS:~ > r.in.gdal
input=/home/keith/grass5/datasrc/hadrm/a2c_con/etp/w001001x.adf output=etp1
Segmentation fault

On Wednesday 27 August 2003 06:49 pm, Keith J. Forbes wrote:

On Wednesday 27 August 2003 06:27 pm, you wrote:
> Keith J. Forbes wrote:
> > On Wednesday 27 August 2003 06:14 pm, you wrote:
> >> > Would updating to 1.1.9 help?
> >>
> >>Keith,
> >>
> >>While there have been a few improvements to arc/info binary grid
> >> support I doubt updating to 1.1.9 will help; however, you should
> >> update to the GDAL night snapshot before reporting a bug via bugzilla.
> >>
> >>Best regards,
> >
> > Frank. Thanks, was actually about to report when your email arrived.
> > How do I update to the
> >
> >>GDAL night snapshot before reporting a bug via bugzilla.??
> >
> > (Linux newbie, sorry)
>
> Keith,
>
> Download, build and install:
>
> ftp://ftp.remotesensing.org/gdal/daily/gdal-cvs-030827.tar.gz
>
> If you aren't very confident about doing that, just report the bug and I
> will try it. Note you will have to make the problem data available.
> Either by attaching to the bugzilla bug report (if it is small, say 2MB
> or less) or by making it available to me some other way.
>
> Best regards,

Frank: Updated as you suggested (gdal-cvs-030827.tar.gz) without problems.
Unfortunately, situation remains the same (as detailed in earlier email,
gdalinfo works on files as long as I am not in the project directory and on
project directory itself; however, r.in.gdal continues to give a segmentation
error as before

(etp is a directory within a2c_con)

GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=etp output=testetp
Segmentation fault
GRASS:~/grass5/datasrc/hadrm/a2c_con > r.in.gdal input=etp/w001001x.adf
output=testetp
Segmentation fault

I guess I will go ahead and file a bug report. Never having done this before,
please let me know if there is any additional info other that what I have
provided in this thread. Thanks.

Keith

--
k|J|f

On Thu, 28 Aug 2003, Keith J. Forbes wrote:

Frank: Updated as you suggested (gdal-cvs-030827.tar.gz) without problems.
Unfortunately, situation remains the same (as detailed in earlier email,
gdalinfo works on files as long as I am not in the project directory and on
project directory itself; however, r.in.gdal continues to give a segmentation
error as before

If you compiled GRASS from source, try re-compiling using the --with-gdal
option to the configure script. This will mean GRASS will compile
r.in.gdal directly against the GDAL library (whatever that means :slight_smile: ) and
not try to dynamically load GDAL. This will indicate whether that might be
the source of the bug.

r.in.gdal used to give me segmentation faults sometimes when importing
GeoTIFF images, but since I started using the --with-gdal switch it hasn't
happened.

Paul Kelly