-
-
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
gdal reproject: add "size" to match gdalwarp '-ts', and allow (one) value to be 0 #11908
Comments
no, you're not missing anything. Fully replacing existing utilities is going to be a year-long process. I'm not sure to which command(s) resizing would belong. It definitely makes sense for reproject. For convert, maybe? There is alwyas this ambiguity of what belongs to translate vs warp. |
For the sake of brainstorming: or should we have a dedicated resize subcommand ? "gdal raster resize -r cubic --size=1024,0 in.tif out.tif" |
|
yes
I don't understand what you mean. Even if we have a dedicated resize, we'll definitely need a resize capability directly in reproject (which ultimately goes to the GDALWarp() logic), because doing a resizing after warping would have consequences on the quality and speed. |
I can't see my way through the ambiguities yet. I think of gdalwarp as an insanely general translate, able to take any input/s and paint them onto an arbitrary canvas, clip, resize, calculate, cutline, create, update .. it does everything and when inputs and/or output can be defined by non-regular geolocation arrays .. I have no idea what to call that! I'm prepared to put a lot of effort into these applications to get the right mix, but I haven't got a strong vision yet. I wish we could reframe reproject as maybe "remodel" or "cast" (interpolate?) but maybe that's folly. I think having slightly limiting subcommands is good, so long as the full Godzilla is still available for experts. I never liked how -r allowed translate to align to projwin rather than source pixels, I always thought that was a defining feature of gdalwarp vs translate, arbitrary output window alignment 🙏 |
What I meant is Another question: could an optional output option of |
for those specific operations, as there's a VRT correspondance, yes. But for the more general problem of "sort'of'VRT'ifying" arbitrary (stream compatible) algorithms, see #11837 for which I'm awaiting for feedback. |
Feature description
I want to be able to set the target size, '-te' and '-ts' is my normal preference, and being able to have one of the sizes set to 0 is a real benefit.
Certainly interested to help implement this, though I guess if the trad apps and library versions remain there's no afaic. I wasn't much able to be active when the RFC was discussed.
Additional context
(I wonder if I'm missing something, because there doesn't seem to be the equivalent of '-outsize' for 'translate' conversion either?)
The text was updated successfully, but these errors were encountered: