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

Reduce decimal precision in output to minimize file size #215

Open
atima opened this issue Nov 7, 2024 · 1 comment
Open

Reduce decimal precision in output to minimize file size #215

atima opened this issue Nov 7, 2024 · 1 comment

Comments

@atima
Copy link

atima commented Nov 7, 2024

The output contains an excessive number of decimal points (e.g., 170.86789491627363), which is unnecessary and increases the file size of both GeoJSON and SVG. Should we limit the precision to 1-4 decimal points?

Related article: https://css-tricks.com/understanding-and-manually-improving-svg-optimization/

@adisidev
Copy link
Collaborator

adisidev commented Nov 7, 2024

@nihalzp is this something viable? I remember you mentioning that there is some sort of rounding that we do that has been helpful in removing intersections, and we need some degree of precision to not have intersections, but could we reduce the number of decimal places in the output without any problems?

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