diff --git a/src/io.cpp b/src/io.cpp index 130e35a..a11279c 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -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(inputMultipolygon->getGeometryRef(currentPolygon)); polygons.push_back(std::make_unique()); // polygons.back()->id = std::to_string(inputFeature->GetFID()) + "-" + std::to_string(currentPolygon); // polygons.back().semantic_class = cityjson_class;