Name | pyterrain JSON |
Version |
0.0.2
JSON |
| download |
home_page | https://github.com/Clarmy/pyterrain |
Summary | A Python package to fetch terrain data easily. |
upload_time | 2023-05-23 13:11:21 |
maintainer | |
docs_url | None |
author | Wentao Li |
requires_python | >=3.8 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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](https://developers.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:
```python
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/Clarmy/pyterrain",
"name": "pyterrain",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Wentao Li",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/0d/11/62f7d269ad03631991e9c2d8398d91abf47efb981d587270949c098f81b1/pyterrain-0.0.2.tar.gz",
"platform": null,
"description": "# pyterrain\nA python package to fetch terrain.\n\n# Installation\nYou can install by pip `$ pip install pyterrain`\n\n# Usage\n\n## Register API Key\nPyterrain 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](https://developers.nextzen.org/). The key's pattern is like `Dto0r88DQuaQizoxcQSxxx`\n\n## Fetch DEM by bound box\nWhen API key is reday, you can download DEM data like this:\n\n```python\nbbox = 108.444319, 20.161757, 111.318897, 18.05883 # Hainan province of China\n\nterrain = Terrain(\"Dto0r88DQuaQizoxcQSxxx\") # Pass API key\nxs, ys, elevation = terrain.fetch(bbox=bbox, quiet=False, coord=\"lonlat\", zoom=10)\n```\n\nIf download is not completed because of connection, retry it.\n",
"bugtrack_url": null,
"license": "",
"summary": "A Python package to fetch terrain data easily.",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/Clarmy/pyterrain"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3b8be0020815afe975ff58b911a23a1487e99dcc4987bcb17857e6f5922e0b61",
"md5": "b71f1d0e647d86104c9631ee5641a367",
"sha256": "7c13f72329144e3357e19a0485afc7eb66cc71fa9bfae53eccb9b564c87cb95b"
},
"downloads": -1,
"filename": "pyterrain-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b71f1d0e647d86104c9631ee5641a367",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4992,
"upload_time": "2023-05-23T13:11:20",
"upload_time_iso_8601": "2023-05-23T13:11:20.321463Z",
"url": "https://files.pythonhosted.org/packages/3b/8b/e0020815afe975ff58b911a23a1487e99dcc4987bcb17857e6f5922e0b61/pyterrain-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0d1162f7d269ad03631991e9c2d8398d91abf47efb981d587270949c098f81b1",
"md5": "7a83a972625c232071efdd398acfbc3e",
"sha256": "ac5011f2b38147722ef85a2d2028cdc376fc95cb1bf3b5578ec36993b133da9f"
},
"downloads": -1,
"filename": "pyterrain-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "7a83a972625c232071efdd398acfbc3e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5165,
"upload_time": "2023-05-23T13:11:21",
"upload_time_iso_8601": "2023-05-23T13:11:21.592866Z",
"url": "https://files.pythonhosted.org/packages/0d/11/62f7d269ad03631991e9c2d8398d91abf47efb981d587270949c098f81b1/pyterrain-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-23 13:11:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Clarmy",
"github_project": "pyterrain",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyterrain"
}