Skip to content

Commit

Permalink
Fix GDAL casting issue on older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ipadjen committed Aug 25, 2023
1 parent aa0888f commit 073ad8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void IO::read_polygons(std::string& file, PolyVecPtr& polygons, std::string* crs
for (int currentPolygon = 0;
currentPolygon < inputMultipolygon->getNumGeometries();
++currentPolygon) {
OGRPolygon *inputPolygon = inputMultipolygon->getGeometryRef(currentPolygon);
OGRPolygon* inputPolygon = static_cast<OGRPolygon*>(inputMultipolygon->getGeometryRef(currentPolygon));
polygons.push_back(std::make_unique<Polygon_with_attr>());
// polygons.back()->id = std::to_string(inputFeature->GetFID()) + "-" + std::to_string(currentPolygon);
// polygons.back().semantic_class = cityjson_class;
Expand Down

0 comments on commit 073ad8e

Please sign in to comment.