Opened 7 years ago

Closed 7 years ago

Last modified 7 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 by Daniel Wiesmann, 7 years ago

Has patch: set
Version 0, edited 7 years ago by Daniel Wiesmann (next)

comment:2 by Tim Graham, 7 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Tim Graham <timograham@…>, 7 years ago

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 by Tim Graham <timograham@…>, 7 years ago

In ed3215ad:

Refs #27421 -- Documented GDALRaster creation in detail.

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

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