Ticket #3449 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

GdalTools: unclear results from clipping

Reported by: pcav Owned by: brushtyler
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Python plugins and bindings Version:
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

Currently, when >1 layer is loaded into the canvas, clipping results are difficult to interpret. The tool attempts to clip all the loaded layers, whereas I guess the user expects only the topmost layer will be clipped.

Change History

follow-up: ↓ 2   Changed 2 years ago by brushtyler

  • status changed from new to assigned

All the active layers (visible ones) are clipped. When more then one layer are active the result is the merge of all the active layers clipped by the extent.

In this moment there's an issue because the topmost layer is inserted as the first one in the gdal_merge command, but seeing at the  gdal_merge manpages, "In areas of overlap, the last image will be copied over earlier ones".

So when there are > 1 layers active, in the result the last layer in the TOC is over the topmost one. I'm going to fix it as soon as possible.

in reply to: ↑ 1   Changed 2 years ago by brushtyler

  • status changed from assigned to closed
  • resolution set to fixed

Replying to brushtyler:

So when there are > 1 layers active, in the result the last layer in the TOC is over the topmost one. I'm going to fix it as soon as possible.

Fixed in r15125. I guess I can close this ticket.

Note: See TracTickets for help on using tickets.