Opened 8 years ago

Closed 8 years ago

Last modified 8 years 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 by Even Rouault, 8 years ago

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 by Even Rouault, 8 years ago

In 34813:

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

comment:3 by Even Rouault, 8 years ago

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