Skip to content

Commit 73f081e

Browse files
committed
Doc: Describe possible expansion of -projwin
1 parent 3c41908 commit 73f081e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/source/programs/gdal_raster_clip.rst

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Standard options
7777
the input dataset, unless :option:`--bbox-crs` is specified.
7878
The X and Y axis are the "GIS friendly ones", that is X is longitude or easting,
7979
and Y is latitude or northing.
80+
The bounds are expended if necessary to match input pixel boundaries.
8081

8182
.. option:: --bbox-crs <CRS>
8283

doc/source/programs/gdal_translate.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ resampling, and rescaling pixels in the process.
187187

188188
.. note::
189189

190-
In GDAL 2.1.0 and 2.1.1, using -projwin with coordinates not aligned
191-
with pixels will result in a sub-pixel shift. This has been corrected
192-
in later versions. When selecting non-nearest neighbour resampling,
193-
starting with GDAL 2.1.0, sub-pixel accuracy is however used to get
194-
better results.
190+
When using nearest-neighbor resampling, the window specified by
191+
:option:`-projwin` is expanded if necessary to match input
192+
pixel boundaries. For other resampling algorithms, the window
193+
is not modified.
194+
195195

196196
.. option:: -projwin_srs <srs_def>
197197

0 commit comments

Comments
 (0)