1 // Copyright 2020 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #ifndef RASTER_TO_GTIFF_GTIFF_CONVERTER_H_ 16 #define RASTER_TO_GTIFF_GTIFF_CONVERTER_H_ 17 18 #include <string> 19 20 #include "gdal_sandbox.h" // NOLINT(build/include) 21 #include "get_raster_data.h" // NOLINT(build/include) 22 #include "sandboxed_api/transaction.h" 23 24 namespace gdal::sandbox { 25 26 class RasterToGTiffProcessor : public sapi::Transaction { 27 public: 28 RasterToGTiffProcessor(std::string out_file_full_path, 29 std::string proj_db_path, parser::RasterDataset data, 30 int retry_count = 0); 31 32 private: 33 absl::Status Main() final; 34 35 const std::string out_file_full_path_; 36 parser::RasterDataset data_; 37 }; 38 39 } // namespace gdal::sandbox 40 41 #endif // RASTER_TO_GTIFF_GTIFF_CONVERTER_H_ 42