Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pruning polylines #15

Open
helgasoft opened this issue Oct 13, 2021 · 0 comments
Open

pruning polylines #15

helgasoft opened this issue Oct 13, 2021 · 0 comments

Comments

@helgasoft
Copy link

Thank you for the very useful package, works great!
I noticed however that the output geoJson file decreases the resolution of polygon boundaries. Also known as "pruning", this is when a polyline made of several line segments is replaced by one straight line. I suppose it is by design since the description says "Sparsely represents linear portions of the path by the minimal number of points." There is a tolerance parameter, but it is only used for Bezier curves (S and C commands). In fact the relevant code resides in dependency svg-path-to-polygons.

Is there a way to make this behavior optional, like an additional parameter "pruning: true/false" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant