-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Feature request: implement scaleclip switch in gdal_transform #1825
Comments
I would like to work on this. @rouault could you please point where |
maybe surprisingly, this will not be a completely trivial change. The scaling is actually performed by the GDAL VRT driver. gdal/apps/gdal_translate_lib.cpp Line 1984 in 6e6aff4
gdal/apps/gdal_translate_lib.cpp Line 1957 in 6e6aff4
and the scaling computation in the VRT driver is done at Line 2845 in 6e6aff4
For a -scaleclip option to work, you'll have to modify the VRT serialization/deserialization from/to XML to store the src_min src_max dst_min dst_max parameters (this is already done for the exponential scaling, so that should be reused. you'll find that in the vrtsources.cpp file), as well as the option to clip. |
Any updates on implementing this feature? |
I think it would be useful having -scale complemented by a parameter scaleclip to indicate "Clip output values to the effective range dst_min to dst_max defined in -scale"
The text was updated successfully, but these errors were encountered: