sandboxed-api/oss-internship-2020/gdal/raster_to_gtiff/README.md
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

755 B

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