Skip to content

Commit

Permalink
Remove compile warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Jan 14, 2024
1 parent 7ae856a commit 7764b8f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/grid_map_geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,9 @@ bool GridMapGeo::initializeFromGdalDataset(const std::string &path, bool align_t
}
std::cout << std::endl << "Loading GDAL Dataset for gridmap" << std::endl;

double originX, originY, pixelSizeX, pixelSizeY;
double pixelSizeX, pixelSizeY;
std::array<double, 6> geoTransform;
if (dataset->GetGeoTransform(geoTransform.data()) == CE_None) {
originX = geoTransform[0];
originY = geoTransform[3];
pixelSizeX = geoTransform[1];
pixelSizeY = geoTransform[5];
} else {
Expand Down Expand Up @@ -230,11 +228,9 @@ bool GridMapGeo::addColorFromGeotiff(const std::string &path) {
}
std::cout << std::endl << "Loading color layer from GeoTIFF file for gridmap" << std::endl;

double originX, originY, pixelSizeX, pixelSizeY;
double pixelSizeX, pixelSizeY;
std::array<double, 6> geoTransform;
if (dataset->GetGeoTransform(geoTransform.data()) == CE_None) {
originX = geoTransform[0];
originY = geoTransform[3];
pixelSizeX = geoTransform[1];
pixelSizeY = geoTransform[5];
} else {
Expand Down Expand Up @@ -291,11 +287,9 @@ bool GridMapGeo::addLayerFromGeotiff(const std::string &layer_name, const std::s
}
std::cout << std::endl << "Loading color layer from GeoTIFF file for gridmap" << std::endl;

double originX, originY, pixelSizeX, pixelSizeY;
double pixelSizeX, pixelSizeY;
std::array<double, 6> geoTransform;
if (dataset->GetGeoTransform(geoTransform.data()) == CE_None) {
originX = geoTransform[0];
originY = geoTransform[3];
pixelSizeX = geoTransform[1];
pixelSizeY = geoTransform[5];
} else {
Expand Down

0 comments on commit 7764b8f

Please sign in to comment.