[GRASSLIST:1611] import ENVI .hdr with r.in.gdal

Hello,

Trying to import an ENVI raster with gdal, I get a segmentation fault.
While this is a gdal rather than a grass problem; maybe someone has some
experience with it... I don't know whether it is a problem in the binary
map or something in the .hdr support file that is not supported by GDAL.
The contents of the .hdr file are listed below.

thanks,

Wouter

command: r.in.gdal in=map.bin out=map location=new

contents of map.hdr:

ENVI
description = {
  Classification Image created from input ROIs [Wed May 07 11:39:42
2003]}
samples = 3516
lines = 2313
bands = 1
header offset = 0
file type = ENVI Classification
data type = 1
interleave = bsq
sensor type = Unknown
classes = 7
class lookup = {
   0, 0, 0, 197, 218, 0, 211, 181, 122, 176, 48, 162, 0, 144,
0,
135, 132, 167, 65, 93, 249}
class names = {
Unclassified, grassland-last, crops-lqaqs, orchards-last, forest-last,
urban-last, water-last}
byte order = 0
x start = 107
y start = 77
map info = {Belgian Projection Lambert 72, 1.0000, 1.0000, 199014.6000,
174062.6400, 3.0000000000e+000, 3.0000000000e+000, Belgian datum 72,
units=Meters}
projection info = {4, 6378388.0, 6356911.9, 90.000000, 4.367487,
150000.0, 5400088.0, 49.833334, 51.166667, Belgian datum 72, Belgian
Projection Lambert 72, units=Meters}
wavelength units = Unknown
band names = {
Class Image from ROIs}

Hello
I didn't see any replies to this on the list so am just wondering if you
got it sorted out.

wouter buytaert wrote:

Hello,

Trying to import an ENVI raster with gdal, I get a segmentation fault.
While this is a gdal rather than a grass problem; maybe someone has some
experience with it...

Did you get any other maps imported with r.in.gdal? If not the problem
is probably the gdalbridge code, which you can force GRASS not to use by
specifying the --with-gdal configure option when compiling.

Try reading the map with gdalinfo. If you get a segmentation fault then,
the problem is with GDAL, if not, it probably is that you did not
compile GRASS with the --with-gdal configure option. You could try
re-compiling GRASS using this option.

Paul