Opened 4 years ago

Closed 4 years ago

#26417 closed New feature (fixed)

Allow setting GDALBand data with replicated input.

Reported by: Daniel Wiesmann Owned by: Daniel Wiesmann
Component: GIS Version: 1.9
Severity: Normal Keywords: raster gdal gis
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Currently band data can only be set with "explicit" values, so to fill a band with a single value, a large array with this value has to be passed to the GDALBand's data() method.

The underlying capi function GDALRasterIo automatically replicates data if only a partial array is passed to it. Exposing this functionality in Django's GDAL api improve its usability for this kind of operations on large rasters.

Change History (2)

comment:1 Changed 4 years ago by Tim Graham

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:2 Changed 4 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 870dd1d3:

Fixed #26417 -- Allowed setting GDALBand data with partial values.

Note: See TracTickets for help on using tickets.
Back to Top