Opened 16 years ago

Closed 15 years ago

#2040 closed defect (fixed)

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

Reported by: JaredRubinAZ Owned by: warmerdam
Priority: normal Milestone: 1.5.4
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 (5)

comment:1 by warmerdam, 16 years ago

Component: defaultGDAL_Raster
Keywords: NITF RPC added
Milestone: 1.5.2
Status: newassigned

Reviewing as part of my CNSC related RPC efforts.

comment:2 by warmerdam, 16 years ago

Description: modified (diff)

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

comment:3 by warmerdam, 16 years ago

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.

comment:4 by warmerdam, 15 years ago

Jared,

Have you had an opportunity to test the remapping?

comment:5 by warmerdam, 15 years ago

Resolution: fixed
Status: assignedclosed

""" Yes. I have applied a patch on my end. However I can not disseminate any images that have RPC00A coefficients to the community. Jared """

Change also merged into 1.5 branch (r15809).

Note: See TracTickets for help on using tickets.