sandboxed-api/oss-internship-2020/gdal/raster_to_gtiff
Bohdan Tyshchenko 5442d8c6e0 Updated sandbox construction logic and CMakeLists
More flexible CMake file with variables
Added logic to check whether proj.db exists and fetch it from the environment variable
2020-10-05 11:01:15 -07:00
..
testdata Raster to GTiff workflow implementation 2020-10-01 03:59:18 -07:00
CMakeLists.txt Updated sandbox construction logic and CMakeLists 2020-10-05 11:01:15 -07:00
gdal_sandbox.h Updated sandbox construction logic and CMakeLists 2020-10-05 11:01:15 -07:00
get_raster_data.cc Updated sandbox construction logic and CMakeLists 2020-10-05 11:01:15 -07:00
get_raster_data.h Updated sandbox construction logic and CMakeLists 2020-10-05 11:01:15 -07:00
raster_to_gtiff.cc Updated sandbox construction logic and CMakeLists 2020-10-05 11:01:15 -07:00
README.md Updated sandbox construction logic and CMakeLists 2020-10-05 11:01:15 -07:00
tests.cc Updated sandbox construction logic and CMakeLists 2020-10-05 11:01:15 -07:00

GDAL Raster to GeoTIFF Workflow Sandbox

This repository is an example of how Sandboxed API can be used with GDAL C Raster API to implement the creation of the GeoTIFF dataset inside the sandbox.

Workflow details

Implemented workflow consists of a few steps:

  1. Register needed drivers inside the sandbox
  2. Get specific driver by name (GTiff)
  3. Map output file inside the sandbox and create GeoTIFF dataset backed by this file
  4. Set affine transformation coefficients if needed
  5. Set projection reference string if needed
  6. Write raster bands data to the dataset using RasterIO
  7. Set No data value if needed
  8. Clean up data and close the dataset

Implementation details

Build details

Build GDAL and PROJ from sources

Examples