mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Coding style fixed
This commit is contained in:
parent
29310a2305
commit
61e8274954
|
@ -102,7 +102,9 @@ absl::Status GdalMain(std::string filename) {
|
|||
// analyzing the returning object.
|
||||
// Same for GDALReturnsIO from below.
|
||||
CPLErr err;
|
||||
SAPI_ASSIGN_OR_RETURN(err, api.GDALGetGeoTransform(&ptr_dataset, adf_geo_transform_array.PtrBoth()));
|
||||
SAPI_ASSIGN_OR_RETURN(
|
||||
err,
|
||||
api.GDALGetGeoTransform(&ptr_dataset, adf_geo_transform_array.PtrBoth()));
|
||||
|
||||
// If GDALGetGeoTransform generates an error.
|
||||
if (err != CE_None) {
|
||||
|
@ -145,10 +147,12 @@ absl::Status GdalMain(std::string filename) {
|
|||
std::vector<int8_t> raster_data(nX_size.value() * nY_size.value(), -1);
|
||||
sapi::v::Array<int8_t> raster_data_array(&raster_data[0], raster_data.size());
|
||||
|
||||
// We will use CPLErr type of returning value, as before with GDALGetGeoTransorm.
|
||||
SAPI_ASSIGN_OR_RETURN(err, api.GDALRasterIO(&ptr_band, GF_Read, 0, 0, nX_size.value(), nY_size.value(),
|
||||
raster_data_array.PtrBoth(), nX_size.value(),
|
||||
nY_size.value(), GDT_Byte, 0, 0));
|
||||
// We will use CPLErr type of returning value, as before with
|
||||
// GDALGetGeoTransorm.
|
||||
SAPI_ASSIGN_OR_RETURN(
|
||||
err, api.GDALRasterIO(&ptr_band, GF_Read, 0, 0, nX_size.value(),
|
||||
nY_size.value(), raster_data_array.PtrBoth(),
|
||||
nX_size.value(), nY_size.value(), GDT_Byte, 0, 0));
|
||||
|
||||
// If GDALRasterIO generates an error.
|
||||
if (err != CE_None) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user