Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#6610 closed defect (fixed)

gdal_translate -projwin doesn't use integer source coordinates

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.2
Component: Utilities Version: 2.1.0
Severity: normal Keywords:
Cc:

Description

Starting with GDAL 2.1.0, gdal_translate -projwin computes source pixel coordinates as floating point numbers, and use them for the output geotransform if not set with -a_ullr. For the default resampling (nearest neighbour), this results in a not desired shift.

Reported as https://lists.osgeo.org/pipermail/gdal-dev/2016-July/044911.html

Change History (3)

comment:1 Changed 7 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 34812:

gdal_translate: when using -projwin with default nearest neighbour resampling, align on integer source pixels (fixes #6610)

comment:2 Changed 7 months ago by Even Rouault

In 34813:

gdal_translate: when using -projwin with default nearest neighbour resampling, align on integer source pixels (fixes #6610)

comment:3 Changed 7 months ago by Even Rouault

Milestone: 2.1.2
Note: See TracTickets for help on using tickets.