Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#4659 closed defect (fixed)

HFA files with undefined datum have no projection info

Reported by: jeepingben Owned by: warmerdam
Priority: normal Milestone: 2.0.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: HFA imagine datum
Cc:

Description

I have several HFA files with undefined datum. When I load them using GDALopen, the resulting dataset has no projection information available. The images load in Erdas Viewfinder. Attached is my proposed fix. This looks like a logic error in HFAdataset.

Attachments (2)

hfa-datum.patch (1.1 KB ) - added by jeepingben 12 years ago.
parentheses are hard to get right.
sampleimage.zipx (910.9 KB ) - added by jeepingben 9 years ago.
image showing hte problem. Sorry about the compression - only way to get below size limit.

Download all attachments as: .zip

Change History (8)

by jeepingben, 12 years ago

Attachment: hfa-datum.patch added

parentheses are hard to get right.

comment:1 by jeepingben, 12 years ago

Component: defaultGDAL_Raster
Keywords: HFA imagine datum added
Version: unspecifiedsvn-trunk

comment:2 by warmerdam, 12 years ago

Can you provide a sample file demonstrating the problem?

comment:3 by jeepingben, 12 years ago

The files I have are part of the example data that came with Erdas. I think they are copyrighted. The file called lndem.img is a good example. GDAL failed to get geo info without the change attached above.

by jeepingben, 9 years ago

Attachment: sampleimage.zipx added

image showing hte problem. Sorry about the compression - only way to get below size limit.

comment:4 by jeepingben, 9 years ago

I just noticed that this was never resolved. The line numbers in my patch are now incorrect. The block to be replaced is now at line 5014 in hfadataset.cpp. I can rebuild the patch if needed, but this is a pretty easy one to apply manually.

comment:5 by Even Rouault, 9 years ago

Milestone: 2.0
Resolution: fixed
Status: newclosed

trunk r29206 "HFA: read projection even when it does not contain datum information (patch by jeepingben, #4659)"

comment:6 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.