Skip to main content

Tool for extracting data from geojson or gpx files

Project description

geojson_transformer

A python library for transforming GPX data to GeoJSON format. It also gives you the ability to extract data from the gpx file such as: Total elevation, total distance, starting point, paired data.

Installation

Use the package manager pip to install geojson_transformer.

pip install geojson-transformer

Usage

from geojson_transformer import GeoJsonTransformer

# Create an object from a gpx file.
gpxfile = GeoJsonTransformer(path='path/to/my_gpx_file.gpx') 

# Returns the total distance between each point in the gpx file.
gpxfile.total_distance

# Returns the total cumulative elevation between each point in the gpx file.
gpxfile.total_elevation

# Returns the first lat/lon pair found in the file.
gpxfile.starting_point

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

geojson_transformer-0.0.5.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

geojson_transformer-0.0.5-py3-none-any.whl (6.1 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