22 #ifndef SIRIUS_GDAL_WRAPPER_H_ 23 #define SIRIUS_GDAL_WRAPPER_H_ 39 const std::string& proj_ref);
54 void SaveImage(
const Image& image,
const std::string& output_filepath,
55 const GeoReference& geoRef = {});
60 int n_bands,
const GeoReference& geo_ref = {});
68 const ZoomRatio& zoom_ratio);
77 const ZoomRatio& zoom_ratio);
82 #endif // SIRIUS_GDAL_WRAPPER_H_ Definition: exception.h:27
std::unique_ptr<::GDALDataset, detail::DatasetDeleter > DatasetUPtr
Definition: types.h:45
std::string projection_ref
Definition: wrapper.h:48
std::vector< double > ComputeResampledGeoTransform(GDALDataset *dataset, const ZoomRatio &zoom_ratio)
Compute output image origin and pixel size.
std::vector< double > geo_transform
Definition: wrapper.h:47
void SaveImage(const Image &image, const std::string &output_filepath, const GeoReference &geoRef={})
Image LoadImage(const std::string &filepath)
GeoReference ComputeResampledGeoReference(const std::string &input_path, const ZoomRatio &zoom_ratio)
Compute resampled georeference information.
DatasetUPtr CreateDataset(const std::string &filepath, int w, int h, int n_bands, const GeoReference &geo_ref={})
Data class that represents GDAL geo reference information.
Definition: wrapper.h:36
bool is_initialized
Definition: wrapper.h:49
GeoReference & operator=(const GeoReference &)=default
Data class that represents an image (Size + Buffer)
Definition: image.h:65
DatasetUPtr LoadDataset(const std::string &filepath)