Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds ability to export RPC parameters as SensorML2 docs #2

Merged
merged 2 commits into from
Jan 8, 2021
Merged

Conversation

ghobona
Copy link
Owner

@ghobona ghobona commented Jan 8, 2021

This commit adds to GDAL an ability to export Rational Polynomial Coefficients (RPC) parameters as a SensorML2 document.

To support this capability, a function GDALWriteRPCSensorMLFile has been added to gdal_mdreader.cpp, specified in gdal_mdreader.h. The function is called from nitfdataset.cpp.

To invoke the function, an example call is below.

gdal_translate -of NITF -co RPCTXT=YES /Users/geo/rpc_sample.ntf /Users/geo/out_rpc_out.ntf

The code was tested using a NITF file created from the GeoTIFF files at https://www.isprs.org/data/ikonos/default.aspx

A copy of the generated SensorML2 file is here

@ghobona ghobona merged commit c154e90 into master Jan 8, 2021
@ghobona ghobona deleted the 20200107 branch January 8, 2021 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant