[Gdal-dev] Writing an ENVI file.
Ken Sewell
sewell at dramail.com
Mon Aug 8 10:02:43 EDT 2005
Frank,
I am working off of a CVS version from 03 Aug 2005. My input file
is an ENVI file with the info:
ENVI
samples = 27309
lines = 15414
bands = 4
header offset = 0
file type = ENVI Standard
data type = 12
interleave = bsq
sensor type = Unknown
byte order = 0
map info = {UTM, 1.000, 1.000, 672230.424, 3829409.895, 6.9000000000e-001,
6.9000000000e-001, 42, North, WGS-84, units=Meters}
wavelength units = Unknown
band names = {
GS Sharpen (Orthorectified (MULTI (B ) MS):03JUL05QB0100026MS_P008),
GS Sharpen (Orthorectified (MULTI (G ) MS):03JUL05QB0100026MS_P008),
GS Sharpen (Orthorectified (MULTI (R ) MS):03JUL05QB0100026MS_P008),
GS Sharpen (Orthorectified (MULTI (N ) MS):03JUL05QB0100026MS_P008)}
After running it through gdalwarp with -t_srs EPSG:4326
ENVI
samples = 28018
lines = 10180
bands = 4
header offset = 0
file type = ENVI Standard
data type = 1
interleave = bsq
byte order = 0
Ken Sewell Defense Research Associates
Project Engineer 3915 Germany Lane, Suite 102
937-656-4899 x3004 Beavercreek, Ohio 45431-1608
sewell at dramail.com
On Fri, 5 Aug 2005, Frank Warmerdam wrote:
> On 8/5/05, Ken Sewell <sewell at dramail.com> wrote:
> >
> > A co-worker is trying to use gdalwarp to warp an ENVI file into a new
> > projection. It seems to work, but when we examine the header file it
> > seems to have lost all geotransform and coordinate system info. From
> > searching the mailing list archives, I found that writing to envi is not
> > complete, but should at least output the coord/geo information. Is there
> > a gotcha we need to know about?
>
> Ken,
>
> It looks like Lichun Wang (ITC) did a significant overhaul of the
> header writing for ENVI format very shortly after 1.2.6 release. Are
> you using 1.2.6 or GDAL CVS? I would encourage you to try a
> nightly snapshot if you are currently using 1.2.6.
>
> Looking at the code, it seems it should always write out the
> geotransform information as a mapinfo line, even if the coordinate
> system is not known. What does the generated header file look like?
>
> 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 Gdal-dev
mailing list