PyGsiElev
This is a tiny Python package that can get the elevation of specified coordinates, using the open DEM data distributed from GSI.
Prepare data
-
Download DEM data from GSI's download service. The service is free of charge, but user registration is required.
-
Place the downloaded zip files together in a directory of your choice.
How to use
Install pygsielev package using pip.
$ pip install pygsielev
Import pygsielev.ElevationExtractor class and instanciate with data_dir.
Then, call get_elevation() of the object with longitude and latitude.
>>> from pygsielev import ElevationExtractor
>>> engine = ElevationExtractor(data_dir="data/")
>>> print(engine.get_elevation(lon=138.727299, lat=35.360785))
(3774.9, 'その他')
It returns a tuple contains (elevation, surface type).
Note: When the data_dir paramater is omitted, the environmental variable
GSIELEV_DATADIR will be used to get the data directory.
Operating environment
This package works with Python 3.9 or later. It uses only the standard library.
Contributing
Pull requests are welcome.
Author
Takeshi Sagara sagara@info-proto.com
License
This package can be used under the MIT License.
Metadata
Release files for pygsielev 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygsielev-0.1.1.tar.gz | 5.5 kB | Without provenance | Details for pygsielev-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygsielev-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pygsielev-0.1.1-py3-none-any.whl |
Total release size: 11.8 kB
Release files / pygsielev-0.1.1.tar.gz
| Download URL | pygsielev-0.1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc60c04bea7b749a9134a23624abc45cf31c495bb81294f4f16b7135f7ce565b
|
|
BLAKE2b-256 checksum How to use checksums |
e67074134f2b18197dd77a6417a28e213bfb5271ef5ca5cd9053720d52caf06e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / pygsielev-0.1.1-py3-none-any.whl
| Download URL | pygsielev-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0fb3b91e3c7d659e05c108578ba62883a32ea884775c4743193610686fecbde
|
|
BLAKE2b-256 checksum How to use checksums |
bf440248c41907f4485638fe410bf2aae997360048f8d03e6765cb64b520c8b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
|
Security for pygsielev 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.