From 6ea90dcfb48009c1123e644b12136c3012ab9f6f Mon Sep 17 00:00:00 2001 From: Willard Date: Fri, 4 Dec 2020 13:17:46 +0100 Subject: [PATCH] width road --- src/geojsons.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/geojsons.cpp b/src/geojsons.cpp index ccc1366..21bbe46 100644 --- a/src/geojsons.cpp +++ b/src/geojsons.cpp @@ -440,6 +440,7 @@ void writeRoads(grad_aff::Wrp& wrp, const std::string& worldName, std::filesyste int32_t jId = feature["properties"]["ID"]; feature["properties"].clear(); + feature["properties"]["width"] = roadWidthMap[jId].first; //auto ogrGeometry = OGRGeometryFactory::createFromGeoJson(feature["geometry"].dump().c_str()); //ogrGeometry = ogrGeometry->Buffer(roadWidthMap[jId].first * GRAD_MEH_ROAD_WITH_FACTOR);