Ticket #3338 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Missing georeferencing

Reported by: gaopeng Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.6.2
Severity: normal Keywords: HFA
Cc:

Description

The extent values should be in world space (top: 2898846.6, left: 598543.8, right: 598644.6, bottom: 2898758.4).

Attachments

QB_b1_subset.img Download (210.7 KB) - added by gaopeng 3 years ago.

Change History

Changed 3 years ago by gaopeng

Changed 3 years ago by warmerdam

  • status changed from new to assigned

Gao,

It appears the problem is that the georeferencing node is named "MapInfo?" instead of the normal "Map_Info". I can change the HFAGetMapInfo() code to search for any node of type Eprj_MapInfo if Map_Info does not exist. Does that seem reasonable to you, or does experience suggest anything else?

Changed 3 years ago by gaopeng

Yes.

Changed 3 years ago by warmerdam

  • keywords HFA added
  • status changed from assigned to closed
  • resolution set to fixed
  • milestone 1.6.4 deleted

I have added this logic in trunk (r18605), 1.6-esri (r18606) and 1.7 (r18607).

I deem this a rare form of file and am not taking the change back into 1.6 or 1.5.

Changed 3 years ago by gaopeng

  • status changed from closed to reopened
  • resolution fixed deleted

The cellsize is still missling. It should be 0.6 x 0.6.

Changed 3 years ago by warmerdam

  • status changed from reopened to closed
  • resolution set to fixed

It seems the pixelSize variable in this file uses subfields x and y instead of width and height as is normally the case. I have added a fallback to accept this in trunk (r18621), 1.7 (r18622) and 1.6-esri (r18623). However, I suspect that the file was generated via a non-standard process and I have little reason to believe there are many others like it.

With the above changes this file seems to work ok.

Note: See TracTickets for help on using tickets.