Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C csvkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wireservice
  • csvkit
  • Issues
  • #871
Closed
Open
Issue created Jul 26, 2017 by Administrator@rootContributor

Errors importing geojson with complex types

Created by: jayvdb

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.

Assignee
Assign to
Time tracking