Ticket #3337 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

CADRG data in the polar regions does not display properly.

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

Description

Their projection isinterpreted as GCS WGS84. It should be North Pole Stereographic.

Attachments

00000023.GN9 Download (124.8 KB) - added by gaopeng 3 years ago.
00000023.GNJ Download (124.8 KB) - added by gaopeng 3 years ago.

Change History

Changed 3 years ago by gaopeng

Changed 3 years ago by rouault

I think the fix is in trunk. See #2940

Changed 3 years ago by warmerdam

  • status changed from new to assigned

The relavent patch was r16750. Unfortunately it depends on being able to instantiate a coordinate transformer which is likely not possible in the ArcGIS environment (no PROJ.4). Consulting with Gao on how to proceed.

Changed 3 years ago by rouault

Frank, in r18640 (trunk), I've fixed a leak of pszGCPProjection that was never freed

Changed 3 years ago by warmerdam

  • milestone changed from 1.6.4 to 1.7.1

The transformation into AEQD projection was already in the 1.6-esri branch, however as noted it doesn't do anything in the context of ArcGIS since the transformer cannot be instantiated (nor PROJ.DLL).

As discussed with Gao, we will fallback to publishing the GCPPROJECTIONX metadata in the IMAGE_STRUCTURE domain similarly to what was done in the BSB driver. This essentially tells the projection the GCPs should be converted to in order to better represent the natural coordinate system of the image.

I have implemented this in trunk (r18637), 1.7 (r18638,r18643) and 1.6-esri (r18639, r18642).

In the process of working on this I also identified and corrected (#3347) which ultimately turned out not to be related.

Changed 3 years ago by warmerdam

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

Added a autotest of the polarsteregraphic case with and without PROJ (r18646) in trunk.

Changed 3 years ago by gaopeng

Changed 3 years ago by gaopeng

  • status changed from closed to reopened
  • resolution fixed deleted

I am reopening this ticket with a new test case. It works for the north pole data. However, for the south pole the data shows up as WGS1984 rather than South_Pole_Azimuthal_Equidistant. Attached is a test image.

Changed 3 years ago by warmerdam

  • keywords CADRG added
  • status changed from reopened to closed
  • resolution set to fixed

The code was supporting "zone 9" files which are north pole. I added "zone J" to the filter per the specification and now southern polar files seems to work properly too. The fix is in trunk (r18837), 1.7 (r18838) and 1.6-esri (r18839).

Changed 3 years ago by warmerdam

  • milestone changed from 1.7.1 to 1.7.2
Note: See TracTickets for help on using tickets.