mapbox / mapbox/mapbox-maps-ios
Add ability to disable Douglas-Peucker simplification algorithm in GeoJSONSource
@ZiZasaurus is already working on this.
Since Feb 8, 2022.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
## New Feature
Add ability to disable Douglas-Peucker simplification algorithm in `GeoJSONSource`.
## Why
We are trying to draw high precision (< 50cm) geospatial geometry (e.g. lines, arcs, splines) but Douglas-Peucker algorithm simplifies it to lines.

We've found out that the `tolerance` parameter of `GeoJSONSource` drives this algorithm.
Setting this parameter to `0` fixes the issue a little bit, but the final geometry looks noisy. The algorithm still applies some simplification.

It's crucial for our app to draw precise geometry. That's why it would be very handy to have the ability to disable the simplification algorithm.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.