We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
csvjoin fails if the --lon or --lat columns are empty, which is what in2csv -f geojson emits for non-Point
--lon
--lat
in2csv -f geojson
$ wget https://raw.githubusercontent.com/lyzidiamond/learn-geojson/master/geojson/pdxplaces.geojson $ in2csv -f geojson pdxplaces.geojson > pdxplaces.csv $ head -1 pdxplaces.csv id,Name,Contributor,Reason,my polygon,Utility,Coffee,geojson,type,longitude,latitude $ wc -l pdxplaces.csv 18 pdxplaces.csv $ csvcut -c type,longitude,latitude pdxplaces.csv | csvgrep -c type -m Polygon | csvlook | type | longitude | latitude | | ------- | --------- | -------- | | Polygon | | | | Polygon | | | | Polygon | | | $ grep Polygon pdxplaces.csv [manually edited output for brevity] ...,Polygon,, ...,Polygon,, ...,Polygon,, $ csvjson --lon longitude --lat latitude --indent=4 pdxplaces.csv > pdxplaces.csv.geojson float() argument must be a string or a number, not 'NoneType'
Occurs in 1.0.2 and master.
It works when the Polygon's are removed
$ grep -v Polygon pdxplaces.csv > pdxplaces-points.csv $ wc -l pdxplaces-points.csv 15 pdxplaces-points.csv $ csvjson --lon longitude --lat latitude --indent=4 pdxplaces-points.csv > pdxplaces.csv.geojson
The text was updated successfully, but these errors were encountered:
I see csvjson also only knows how to emit a Point
csvjson
Point
csvkit/csvkit/utilities/csvjson.py
Line 135 in 8314c20
Sorry, something went wrong.
csvjson: Support types other than Point
6b7f119
Parses and removes 'geojson' from the properties, putting the coordinate into the GeoJSON feature geometry. Fixes wireservice#866
8e53286
04b443a
No branches or pull requests
csvjoin fails if the
--lon
or--lat
columns are empty, which is whatin2csv -f geojson
emits for non-PointOccurs in 1.0.2 and master.
It works when the Polygon's are removed
The text was updated successfully, but these errors were encountered: