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

Add --like option to rio-edit-info #387

Closed
sgillies opened this issue Jun 29, 2015 · 4 comments
Closed

Add --like option to rio-edit-info #387

sgillies opened this issue Jun 29, 2015 · 4 comments
Labels
Milestone

Comments

@sgillies
Copy link
Member

Say you've processed a GeoTIFF, a.tif, using imagemagick, stripping all the tags that make it a Geo TIFF, and want to reapply them to the result, b.tif. This might be a nice way to do it:

rio edit-info b.tif --like a.tif --crs --transform

The --like option is already used liked this in rio-rasterize.

Thoughts @jacquestardie @brendan-ward?

@sgillies sgillies added the cli label Jun 29, 2015
@sgillies sgillies added this to the 0.25 milestone Jun 29, 2015
@jqtrde
Copy link
Contributor

jqtrde commented Jun 29, 2015

Heavily in favor.

Is it safe to assume that passing in --like means you don't also need to pass in --crs and --transform?

@brendan-ward
Copy link
Contributor

👍 for --like option here.

@sgillies are --crs and --transform above intended to specify what parts of the --like raster to apply to the target?

Do you want to extend --like to apply to nodata and tags as well?

@sgillies
Copy link
Member Author

@brendan-ward Yes, that's exactly my intention. We could do nodata easily, yes. Tags are harder. GDAL 1.x has no API for finding what tag namespaces exist in a file, so we can really only do the default tags.

sgillies pushed a commit that referenced this issue Jul 2, 2015
In combination with, eg, `--crs ?`, this will extract the metadata
value from another file.

See #387.
@brendan-ward
Copy link
Contributor

Resolved via #399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants