diff options
| author | Daniel Wiesmann <daniel.wiesmann@gmail.com> | 2015-03-13 18:49:02 +0000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-03-16 19:37:43 +0100 |
| commit | f269c1d6f6dcc22c0a781f3223c6da0a4483b06e (patch) | |
| tree | 7172401935d3b1fa1dd4fa76130315764358df48 /tests/gis_tests/data | |
| parent | 8758a63ddbbf7a2626bd84d50cfe83b477e8de0a (diff) | |
Added write support for GDALRaster
- 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.
Diffstat (limited to 'tests/gis_tests/data')
| -rw-r--r-- | tests/gis_tests/data/__init__.py | 0 | ||||
| -rw-r--r-- | tests/gis_tests/data/rasters/__init__.py | 0 | ||||
| -rw-r--r-- | tests/gis_tests/data/rasters/raster.tif | bin | 0 -> 35486 bytes | |||
| -rw-r--r-- | tests/gis_tests/data/rasters/textrasters.py | 12 |
4 files changed, 12 insertions, 0 deletions
diff --git a/tests/gis_tests/data/__init__.py b/tests/gis_tests/data/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/gis_tests/data/__init__.py diff --git a/tests/gis_tests/data/rasters/__init__.py b/tests/gis_tests/data/rasters/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/gis_tests/data/rasters/__init__.py diff --git a/tests/gis_tests/data/rasters/raster.tif b/tests/gis_tests/data/rasters/raster.tif Binary files differnew file mode 100644 index 0000000000..ddc7605703 --- /dev/null +++ b/tests/gis_tests/data/rasters/raster.tif diff --git a/tests/gis_tests/data/rasters/textrasters.py b/tests/gis_tests/data/rasters/textrasters.py new file mode 100644 index 0000000000..b12ce62afc --- /dev/null +++ b/tests/gis_tests/data/rasters/textrasters.py @@ -0,0 +1,12 @@ +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]}] +} +""" |
