mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
f269c1d6f6
- Instantiation of GDALRaster instances from dict or json data. - Retrieve and write pixel values in GDALBand objects. - Support for the GDALFlushCache in gdal C prototypes - Added private flush method to GDALRaster to make sure all data is written to files when file-based rasters are changed. - Replaced ``ptr`` with ``_ptr`` for internal ptr variable Refs #23804. Thanks Claude Paroz and Tim Graham for the reviews.
13 lines
301 B
Python
13 lines
301 B
Python
JSON_RASTER = """{
|
|
"srid": 4326,
|
|
"origin": [0, 0],
|
|
"scale": [1, 1],
|
|
"skew": [0, 0],
|
|
"width": 5,
|
|
"height": 5,
|
|
"nr_of_bands": 1,
|
|
"bands": [{"data": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24]}]
|
|
}
|
|
"""
|