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

-p Not work on float number #2

Open
HuangLiPang opened this issue Apr 9, 2018 · 4 comments
Open

-p Not work on float number #2

HuangLiPang opened this issue Apr 9, 2018 · 4 comments

Comments

@HuangLiPang
Copy link

The latitude and longitude are usually float numbers, but the parameter -p only works for integers.

@igorti
Copy link
Owner

igorti commented Apr 9, 2018

I'm not sure what you mean it only works for integers, as decimal precision is only applicable for decimals. Moreover I cannot replicate the problem. Can you provide more details on what your geojson file looks like, what commands you are running and what results you get.

@HuangLiPang
Copy link
Author

@igorti Thank you for replying.

I have a 10.2MB geojson with LineStrings in coordinate of latitude and longitude and I want to use geojson-minifier to reduce the sizes. However, latitude and longitude are store in floating numbers ( and of course is decimal). I used geojson-minifier -o pack -f <filename> -p 6 in command line but it does not works.
The original and packed geojson are both here. Please check! Thank you!

@igorti
Copy link
Owner

igorti commented Apr 13, 2018

I can't access the files, can you make them publicly available?

@HuangLiPang
Copy link
Author

Hi! @igorti
Sorry for my late replying. I have made the link public.
Thank you for replying me!

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