MCPcopy Create free account
hub / github.com/PDAL/PDAL / simplify

Method simplify

pdal/Polygon.cpp:169–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169void Polygon::simplify(double distance_tolerance, double area_tolerance,
170 bool preserve_topology)
171{
172 throwNoGeos();
173
174 if (preserve_topology)
175 m_geom.reset(m_geom->SimplifyPreserveTopology(distance_tolerance));
176 else
177 m_geom.reset(m_geom->Simplify(distance_tolerance));
178
179 removeSmallRings(area_tolerance);
180 removeSmallHoles(area_tolerance);
181 modified();
182}
183
184
185void Polygon::removeSmallRings(double tolerance)

Callers 3

TESTFunction · 0.80
prepareGeometryMethod · 0.80
doneMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by 1

TESTFunction · 0.64