Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#6610 closed defect (fixed)

gdal_translate -projwin doesn't use integer source coordinates

Reported by: rouault Owned by: 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 6 months ago by rouault

  • Resolution set to fixed
  • Status changed from new to closed

In 34812:

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

comment:2 Changed 6 months ago by rouault

In 34813:

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

comment:3 Changed 6 months ago by rouault

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