| 504 | | """ |
|---|
| 505 | | return self._unary_topology(lgeos.GEOSSimplify, c_double(tolerance)) |
|---|
| | 504 | |
|---|
| | 505 | By default, this function does not preserve topology - e.g. polygons can |
|---|
| | 506 | be split, collapse to lines or disappear holes can be created or |
|---|
| | 507 | disappear, and lines can cross. By specifying preserve_topology=True, |
|---|
| | 508 | the result will have the same dimension and number of components as the |
|---|
| | 509 | input. This is significantly slower. |
|---|
| | 510 | """ |
|---|
| | 511 | if preserve_topology: |
|---|
| | 512 | return self._unary_topology(lgeos.GEOSTopologyPreserveSimplify, c_double(tolerance)) |
|---|
| | 513 | else: |
|---|
| | 514 | return self._unary_topology(lgeos.GEOSSimplify, c_double(tolerance)) |
|---|