Commit 081d2950 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Disable node reduction on polygons/rings for now. Needs more work.

parent 69fdb9bc
......@@ -39,6 +39,9 @@ NodeReducer::NodeReducer(GeoDataDocument* document, int zoomLevel) :
placemark->setGeometry(reducedLine);
}
/*
* @todo FIXME distance based reduction is too simple for polygons, needs sth like Douglas-Peucker
*
else if(geometry->nodeType() == GeoDataTypes::GeoDataLinearRingType) {
GeoDataLinearRing const * prevRing = static_cast<GeoDataLinearRing const *>(geometry);
GeoDataLinearRing* reducedRing = new GeoDataLinearRing;
......@@ -62,6 +65,7 @@ NodeReducer::NodeReducer(GeoDataDocument* document, int zoomLevel) :
}
placemark->setGeometry(reducedPolygon);
}
*/
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment