Closed ziodave closed 9 years ago
In sexagesimal.js E
is most probably interpreted as cardinal direction.
What kind of system outputs numbers formatted like this?
Not sure, this is how data is provided to me.
I don't think it's really possible to decipher between this case and people actually wanting 'east' coordinates: the input to csv2geojson should be either decimal numbers, or sexagesimal notation. Handling alternative forms of formatting for decimals will only make it ambiguous.
If your case, you can probably just find & replace E1 with nothing in the file.
I have a CSV such as the following
The output after conversion is:
As you can see the latitude is correctly interpreted, while the longitude sees its exponent dropped.
I traced down the issue being in lines 101-102 of
csv2geojson.js
:lonk
is turned from1.27381324768066E1
to1.27381324768066
.