mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
5442d8c6e0
More flexible CMake file with variables Added logic to check whether proj.db exists and fetch it from the environment variable
755 B
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:
- Register needed drivers inside the sandbox
- Get specific driver by name (GTiff)
- Map output file inside the sandbox and create GeoTIFF dataset backed by this file
- Set affine transformation coefficients if needed
- Set projection reference string if needed
- Write raster bands data to the dataset using RasterIO
- Set No data value if needed
- Clean up data and close the dataset