-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,19 @@ By default, the script expects CSV data be in the format specified in the sample | |
|
||
csvToGeoJSON arguments (all optional): | ||
|
||
-h, --help Show this help message and exit | ||
--verbose, --v Show parameters, detailed messages and geoJSON output | ||
--csv CSV Filepath/name of CVS input file | ||
-h, --help Show this help message and exit | ||
--verbose, --v Show parameters, detailed messages and geoJSON output | ||
--csv CSV Filepath/name of CVS input file | ||
Default: sample.csv | ||
--output OUTPUT Filepath/name of GeoJSON output file | ||
--output OUTPUT Filepath/name of GeoJSON output file | ||
Default: output.geojson | ||
--columns COLUMNS JSON-formatted dictionary that maps CSV column names to | ||
--columns COLUMNS JSON-formatted dictionary that maps CSV column names to | ||
GeoJSON fields. | ||
Default: "{ 'id':'id', 'latitude':'lat', 'longitude':'lon', 'name':'name', 'value':'pop' }" | ||
where each name:value pair is {geoJSON-column}:{CSV-column} | ||
Note: CSV columns don't have to appear in a particular order since the position of the data columns will be determined from their order in the CSV header (first row). | ||
If CSV contains no ID field, specifying 'id':'-auto-' will automatically generate an ID value based on the row # of the CSV. Otherwise, the ID value will be 0. | ||
Note: CSV columns don't have to appear in a particular order since the position of the data columns | ||
will be determined from their order in the CSV header (first row). | ||
If CSV contains no ID field, specifying 'id':'-auto-' will automatically generate an ID value based | ||
on the row # of the CSV. Otherwise, the ID value will be 0. | ||
|
||
Questions and comments to [email protected] | ||
Questions and comments to [email protected] or [email protected] |