Skip to content

Reprojecting JPG with gcps that are not embedded in the file raises an error #3019

Answered by sgillies
joostmeulenbeld asked this question in Q&A
Discussion options

You must be logged in to vote

@joostmeulenbeld Rasterio supports GCPs for reprojection but only when the source is an array https://github.com/rasterio/rasterio/blob/main/tests/test_warp.py#L1647. GDAL's warper requires GCPs to be attached to a dataset and rasterio doesn't automatically wrap your input JPEG up in a VRT to do this.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@joostmeulenbeld
Comment options

Comment options

You must be logged in to vote
1 reply
@joostmeulenbeld
Comment options

Answer selected by joostmeulenbeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants