mapbox / csv2geojson

magically convert csv files to geojson files
http://mapbox.github.io/csv2geojson/
MIT License
362 stars 82 forks source link

Add ability to parse DMS coordinates #30

Closed gmaclennan closed 9 years ago

gmaclennan commented 9 years ago

I wrote this today after using excel to parse a bunch of DMS coordinates (and remembering that is not the first time I have done that):

http://gmaclennan.github.io/parse-dms/

Thought it might be useful to add this parsing to csv2geojson

tmcw commented 9 years ago

csv2geojson should already have this ability via sexagesimal - are you seeing any cases where it doesn't work?

gmaclennan commented 9 years ago

ha! I did not find sexagesimal when I searched npm, the libraries I found didn't quite do what I wanted. At least I learnt something tackling this on my own (rather pointlessly it turns out) :smiley:

There is a side-case that sexagesimal does not get, I just got sent a collection of coordinates written as 59 12’ 7.7’’W , 02 15’39.6’’N (that's two single curly quotes for the seconds). I have also seen degrees written with º rather than ° (often by me because I forget where it is and just use option-0 on my mac).

Useful if I send a pull-request to handle these edge cases?

PS. missed a chance to call it "sexaguessimal"