Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#27421 closed New feature (fixed)

Add support for size, shape, and offset parameters on instantiation of GDALRaster objects.

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

Description

The data() method on GDALBand objects for setting pixel values accepts parameters that allow fine grained control over the pixel values. The parameters are size, shape, and offset. Band data values can be replicated (for fast writing of blocks of equal data values for instance) and specific blocks of data can be written.

This functionality should also be available directly when instantiating GDALRaster objects. So that band data values can be controlled with more detail on raster creation.

Change History (5)

comment:1 Changed 6 years ago by Daniel Wiesmann

Has patch: set
Last edited 6 years ago by Tim Graham (previous) (diff)

comment:2 Changed 6 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:3 Changed 6 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 2dc07da:

Fixed #27421 -- Added shape, size, and offset controls to GDALRaster constructor.

Thanks Tim Graham for the review.

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

In ed3215ad:

Refs #27421 -- Documented GDALRaster creation in detail.

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

In 8afe790:

[1.11.x] Refs #27421 -- Documented GDALRaster creation in detail.

Backport of ed3215ad53c0b22c58883f97286a878c577e25d6 from master

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