Skip to main content

Convert csv to geojson

Project description

csv2geojson

Convert csv to geojson

Installation

pip install csv2geojson

Development

git clone https://github.com/YuChunTsao/csv2geojson.git

cd csv2geojson

pip install -e '.[test]'

CLI usage

usage: csv2geojson [-h] [-v] [-lat lat] [-long long] [-exclude_columns [column_name ...] | -include_columns [column_name ...]]
                   input output

Convert csv to geojson

positional arguments:
  input                 Input csv file path
  output                Output geojson file path

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -lat lat              Specify the latitude column in csv (default: latitude)
  -long long            Specify the longitude column in csv (default: longitude)
  -exclude_columns [column_name ...]
                        Exclude columns from geojson properties (default: None)
  -include_columns [column_name ...]
                        Include only these columns in the geojson properties (default: None)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csv2geojson-0.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

csv2geojson-0.1.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page