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

Optimize simplification of polys #3

Open
lindsayplatt opened this issue Nov 23, 2021 · 1 comment
Open

Optimize simplification of polys #3

lindsayplatt opened this issue Nov 23, 2021 · 1 comment

Comments

@lindsayplatt
Copy link
Contributor

Currently using rmapshaper::ms_simplify(0.5) but this number could be much lower to increase the polygon simplification. Would be interesting to explore this affect on the overall size of the final SVG. Probably should parameterize this in some way.

@cnell-usgs
Copy link
Member

Similarly, we should look at file sizes with different levels of rounding in the sf_to_coords function. It's currently at 6, but I expect we might only need 2-3 digits to keep the same look, but reduce the file size.

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

2 participants