Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDAL Raster to GeoTIFF workflow implementation #64

Merged
merged 10 commits into from
Oct 19, 2020

Conversation

bohdanty
Copy link
Contributor

@bohdanty bohdanty commented Oct 6, 2020

Basic implementation of the workflow with sample sandbox policy, unit tests and command-line utility to re-create GTiff file inside the sandbox.

Implemented simple GTiff file parser to test sandboxed part of code on a real data, added unit tests.
Need to improve the CMake file to make it work without specifying the absolute paths to libraries.
More flexible CMake file with variables
Added logic to check whether proj.db exists and fetch it from the environment variable
Added instructions on how to build GDAL Sandbox using GDAL and PROJ build from sources
Updated test data
@google-cla google-cla bot added the cla: yes CLA accepted label Oct 6, 2020
Put duplicated code inside the transaction, which is used by both tests and raster_to_gtiff
Removed <filesystem> header, reimplemented one of its utilities for file checking
Code style changes
Replaced .data() with .c_str() for std::string
Updated README to show how to build both GDAL and PROJ inside the build folder and how to link them to the sandbox
Comments fix
Changed sapi::StatusOr to absl::StatusOr
Code changes according to new CStr(absl::string_view) constructor

inline constexpr absl::string_view kTempFilePrefix = "temp_data";
inline constexpr absl::string_view kFirstTestDataPath =
"../testdata/cea.tif";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass PROJECT_BINARY_DIR with an env var to the test and use a path relative to that
See: TEST_SRCDIR in sandboxed_api/sandbox2/CMakeLists.txt

Similar for temp file.

bohdanty and others added 2 commits October 16, 2020 09:15
Added environment variables to remove relative paths from the code
@cblichmann cblichmann merged commit cba334a into google:master Oct 19, 2020
happyCoder92 pushed a commit that referenced this pull request May 4, 2022
PiperOrigin-RevId: 337856019
Change-Id: Ib1d9c5614f02da4df8d624f006f31ea09bb5c560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants