You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using gdalbuildvrt to mosaic several tiles from the Copernicus 30m global DEM. The horizontal resolution of this dataset varies by tile. When using gdalbuildvrt to mosaic adjacent tiles with 3-second and 5-second horizontal resolutions, I need to use a horizontal resolution of 1 second, but none of the automatic options available with -resolution can return this value.
I am thinking of implementing -resolution=common, which would attempt to calculate a resolution that can be multiplied by an integer to arrive at both of the input resolutions. An example implementation in Python:
The key piece here is the Fraction.limit_denominator method. This could be adapted from CPython or other implementations such as this one.
If this seems like an appropriate addition, I can go ahead and implement it. We would probably want some guardrails to prevent disaggregation by more than a factor of N. This also fails to consider rasters whose resolutions may be "compatible" but whose origin points make them not so.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Feature description
I am using
gdalbuildvrt
to mosaic several tiles from the Copernicus 30m global DEM. The horizontal resolution of this dataset varies by tile. When usinggdalbuildvrt
to mosaic adjacent tiles with 3-second and 5-second horizontal resolutions, I need to use a horizontal resolution of 1 second, but none of the automatic options available with-resolution
can return this value.I am thinking of implementing
-resolution=common
, which would attempt to calculate a resolution that can be multiplied by an integer to arrive at both of the input resolutions. An example implementation in Python:The key piece here is the
Fraction.limit_denominator
method. This could be adapted from CPython or other implementations such as this one.If this seems like an appropriate addition, I can go ahead and implement it. We would probably want some guardrails to prevent disaggregation by more than a factor of
N
. This also fails to consider rasters whose resolutions may be "compatible" but whose origin points make them not so.Additional context
No response
The text was updated successfully, but these errors were encountered: