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

wouter buytaert wouter.buytaert at yucom.be
Thu Oct 30 09:06:17 EST 2003


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}




More information about the grass-user mailing list