Ticket #2984 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

multi-part cutlines not supported

Reported by: ysiddiqui Owned by: warmerdam
Priority: normal Milestone: 1.6.1
Component: Utilities Version: 1.6.0
Severity: normal Keywords: gdalwarp cutline
Cc:

Description

In the gdal-16 version of OSGeo4W, multi-part polygons are not supported in gdalwarp for use as cutlines. When this is attempted, the message "ERROR: Did not get any cutline features" is displayed.

As an example, the following command was used with the attached files:

  
C:\apps\OSGEO4W\apps\gdal-16\bin\gdalwarp -order 1 -r near -cutline E:/POPS/temp/req29244_aoi.shp -cblend 0 E:\POPS\temp\piece1411016_temp0.tif E:\POPS\temp\piece1411016_temp1.tif
  
  

Change History

Changed 3 years ago by ysiddiqui

Actually, the attachment was too large. It can be found here:

  • Site: ftp.i3.com
  • Login: fwarmerdam
  • Password: coreopsis
  • Filename: cutline_prob.zip

Changed 3 years ago by warmerdam

  • status changed from new to closed
  • component changed from default to Utilities
  • version changed from unspecified to 1.6.0
  • milestone set to 1.6.1
  • keywords gdalwarp cutline added
  • resolution set to fixed

It turns out that the underlying mechanisms supported multipolygons, but that gdalwarp's logic for accumulating polygons and multipolygons into one big multipolygon was not correct and was discarding the multipolygons.

Corrected in trunk (r16939) and 1.6 branch (r16940).

Changed 3 years ago by warmerdam

I have uploaded a new OSGeo4W gdal16 package (gdal-1.6.0-9).

Note: See TracTickets for help on using tickets.