Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors importing geojson with complex types #871

Closed
jayvdb opened this issue Jul 26, 2017 · 1 comment
Closed

Errors importing geojson with complex types #871

jayvdb opened this issue Jul 26, 2017 · 1 comment
Labels
Milestone

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Jul 26, 2017

A nice collection of more diverse examples of geojson, using other Geometry objects, can be found at https://github.com/node-geojson/geojson-flatten/tree/master/test/fixture , showing a few importing issues.

$ for file in *.geojson; do echo "$file:"; in2csv --format geojson $file > $file.csv ; done
multigeometry.input.geojson:
multigeometry.output.geojson:
too many values to unpack
multilinestring.input.geojson:
multilinestring.output.geojson:
multipoint.input.geojson:
multipoint.output.geojson:
multipolygon.input.geojson:
multipolygon.output.geojson:
nullgeometry.input.geojson:
'NoneType' object has no attribute 'get'
nullgeometry.output.geojson:
'NoneType' object has no attribute 'get'
point.input.geojson:
'coordinates'
point.output.geojson:
'coordinates'

I'm not sure the nullgeometry represents a valid syntax, but it probably shouldnt be an Exception.
The emitting of 'coordinates' is very odd; I hope I dont have any stray print's in my installed version.

@jpmckinney
Copy link
Member

csvkit can round-trip all those files without error now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants