Opened 10 years ago
Closed 10 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 by , 10 years ago
| Patch needs improvement: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 870dd1d3: