mapbox / csv2geojson

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

option to include a geojson field #14

Open opensas opened 11 years ago

opensas commented 11 years ago

I have several datasets that include a column with a geojson field, like this dataset

https://recursos-data.buenosaires.gob.ar/ckan2/barrios/barrios.csv

In this case it's not a point, but a Multipolygon

it could be great if you could add and option to import that column, too

BTW, is there some other way to save shapes in a csv file?

tmcw commented 11 years ago

Hmm, where do these datasets come from? While it's great for csv2geojson to handle 90% of the ways you can do 'geospatial data in a columnar file' this might be tending towards the infinitely-many remainder of 10% cases.

opensas commented 11 years ago

thanks for your prompt reply. It's the data portal of the city of buenos aires.

I think ckan preview (recline) supports it out of the box (you can give it a try here, just click on map)

I find it simply and clear, but like you said I don't find mush support for it.

Any simple and standard format to represent geospatial data in csv you can recommend me?

(just asked about it at schoolofdata: http://ask.schoolofdata.org/question/173/most-simple-way-to-publish-geo-data-information-in-a-dataset/)

I think geojson in a text column is simple and pretty readable, but I don't find many tools supporting it.

If you think it's worth the effort, I might give this feature a try.

rbrundritt commented 5 years ago

Similarly I have come across some CSV files that have Well Known Text as a column. Not sure if it makes sense to support these directly, but perhaps exposing a custom parsing function for a column might be an option to consider.