geojson-minifier icon indicating copy to clipboard operation
geojson-minifier copied to clipboard

-p Not work on float number

Open HuangLiPang opened this issue 6 years ago • 4 comments

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

HuangLiPang avatar Apr 09 '18 08:04 HuangLiPang

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.

igorti avatar Apr 09 '18 08:04 igorti

@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!

HuangLiPang avatar Apr 10 '18 00:04 HuangLiPang

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

igorti avatar Apr 13 '18 11:04 igorti

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

HuangLiPang avatar Apr 20 '18 06:04 HuangLiPang