Opened 7 years ago

Closed 4 years ago

Last modified 4 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 7 years ago.
parentheses are hard to get right.
sampleimage.zipx (910.9 KB) - added by jeepingben 4 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)

Changed 7 years ago by jeepingben

Attachment: hfa-datum.patch added

parentheses are hard to get right.

comment:1 Changed 7 years ago by jeepingben

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

comment:2 Changed 7 years ago by warmerdam

Can you provide a sample file demonstrating the problem?

comment:3 Changed 7 years ago by jeepingben

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.

Changed 4 years ago by jeepingben

Attachment: sampleimage.zipx added

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

comment:4 Changed 4 years ago by jeepingben

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 Changed 4 years ago by Even Rouault

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 Changed 4 years ago by Even Rouault

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.