I have a pandas.core.frame.DataFrame
with many attributes. I would like to convert the DF to a GDF and export as a geojson. I have columns 'geometry.type'
and 'geometry.coordinates'
- both are pandas.core.series.Series
. An example exerpt is below - note that geometry.coordinates
has a list in it
geometry.type | geometry.coordinates |
---|---|
MultiLineString | [[[-74.07224, 40.64417], [-74.07012, 40.64506], [-74.06953, 40.64547], [-74.03249, 40.68565], [-74.01335, 40.69824], [-74.0128, 40.69866], [-74.01265, 40.69907], [-74.01296, 40.70048]], [[-74.01296, 40.70048], [-74.01265, 40.69907], [-74.0128, 40.69866], [-74.01335, 40.69824], [-74.03249, 40.68565], [-74.06953, 40.64547], [-74.07012, 40.64506], [-74.07224, 40.64417]]] |
I would like concatenate the two for a proper geometry column in order to export the data as a geojson