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.7.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

geojson_transformer-0.0.7-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file geojson_transformer-0.0.7.tar.gz.

File metadata

  • Download URL: geojson_transformer-0.0.7.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for geojson_transformer-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9a3fb394b7d1f338a2ddceb915cab992d00437fb3edb31162da6d17da22a416f
MD5 4ba4ef4350a380bc76bd5d5fee333cc7
BLAKE2b-256 31da4c248947452b4a65d0d971be529793ea6140db18cfd0d7591514984cedf7

See more details on using hashes here.

File details

Details for the file geojson_transformer-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: geojson_transformer-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for geojson_transformer-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d6d68718706ca58d77916c6d97b8d357ed2e44686b5369d9b8dc09f793aafd2f
MD5 b4ba8bb1a420d71b98ec4f1e7c157b13
BLAKE2b-256 9c0bfbdd97c9afb684bf9ae398b47108b921cf302f33be422d750f55bfdce171

See more details on using hashes here.

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