Skip to main content

A Python package to fetch terrain data easily.

Project description

pyterrain

A python package to fetch terrain.

Installation

You can install by pip $ pip install pyterrain

Usage

Register API Key

Pyterrain doesn't offer terrain data by itself, it fetches data from another website. Before downloading data, you should sign up an API key from nextzen.org. The key's pattern is like Dto0r88DQuaQizoxcQSxxx

Fetch DEM by bound box

When API key is reday, you can download DEM data like this:

bbox = 108.444319, 20.161757, 111.318897, 18.05883  # Hainan province of China

terrain = Terrain("Dto0r88DQuaQizoxcQSxxx")  # Pass API key
xs, ys, elevation = terrain.fetch(bbox=bbox, quiet=False, coord="lonlat", zoom=10)

If download is not completed because of connection, retry it.

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

pyterrain-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

pyterrain-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pyterrain-0.0.2.tar.gz.

File metadata

  • Download URL: pyterrain-0.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyterrain-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ac5011f2b38147722ef85a2d2028cdc376fc95cb1bf3b5578ec36993b133da9f
MD5 7a83a972625c232071efdd398acfbc3e
BLAKE2b-256 0d1162f7d269ad03631991e9c2d8398d91abf47efb981d587270949c098f81b1

See more details on using hashes here.

File details

Details for the file pyterrain-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyterrain-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyterrain-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c13f72329144e3357e19a0485afc7eb66cc71fa9bfae53eccb9b564c87cb95b
MD5 b71f1d0e647d86104c9631ee5641a367
BLAKE2b-256 3b8be0020815afe975ff58b911a23a1487e99dcc4987bcb17857e6f5922e0b61

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