Ticket #2040 (assigned defect)

Opened 9 months ago

Last modified 6 months ago

nitfdataset.cpp doesn't descriminate between RPC00A and RPC00B coefficients

Reported by: JaredRubinAZ Assigned to: warmerdam (accepted)
Priority: normal Milestone: 1.5.3
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: NITF RPC
Cc:

Description (Last modified by warmerdam)

From the documentation that I have read on the RPC00A and the RPC00B tags, the coefficients used in the polynomial are in a different order for doing ground/image and image/ground projections. So if you are going to use the projection assuming the RPC00B polynomial than you need to remap the RPC00A coefficients to RPC00B as follows:

{0, 1, 2, 3, 4, 5, 6 , 10, 7, 8, 9, 11, 14, 17, 12, 15, 18, 13, 16, 19};

otherwise your projections will be wrong. I have verified this with sample imagery.

Change History

03/14/08 20:25:53 changed by warmerdam

  • keywords set to NITF RPC.
  • status changed from new to assigned.
  • component changed from default to GDAL_Raster.
  • milestone set to 1.5.2.

Reviewing as part of my CNSC related RPC efforts.

03/14/08 20:37:12 changed by warmerdam

  • description changed.

Can you point to any sample datasets with RPC00A that I can use for testing?

03/14/08 21:35:39 changed by warmerdam

I have applied the remapping in trunk (r14012) but I haven't been able to test it yet. I'd like to take it back into 1.5 branch if I could test it, or if you could.