pygsielev


Namepygsielev JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-12-17 04:02:41
maintainerNone
docs_urlNone
authorTakeshi Sagara
requires_python<4.0,>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://fgd.gsi.go.jp/download/mapGis.php?tab=dem). 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](https://choosealicense.com/licenses/mit/) License.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pygsielev",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Takeshi Sagara",
    "author_email": "sagara@info-proto.com",
    "download_url": "https://files.pythonhosted.org/packages/e6/70/74134f2b18197dd77a6417a28e213bfb5271ef5ca5cd9053720d52caf06e/pygsielev-0.1.1.tar.gz",
    "platform": null,
    "description": "# PyGsiElev\n\nThis is a tiny Python package that can get the elevation of\nspecified coordinates, using the open DEM data distributed from GSI.\n\n## Prepare data\n\n- Download DEM data from [GSI's download service](https://fgd.gsi.go.jp/download/mapGis.php?tab=dem). The service is free of charge, but user registration is required.\n\n- Place the downloaded zip files together in a directory of your choice.\n\n\n## How to use\n\nInstall `pygsielev` package using pip.\n\n```\n$ pip install pygsielev\n```\n\nImport `pygsielev.ElevationExtractor` class and instanciate with `data_dir`.\nThen, call `get_elevation()` of the object with longitude and latitude.\n\n```\n>>> from pygsielev import ElevationExtractor\n>>> engine = ElevationExtractor(data_dir=\"data/\")\n>>> print(engine.get_elevation(lon=138.727299, lat=35.360785))\n(3774.9, '\u305d\u306e\u4ed6')\n```\n\nIt returns a tuple contains (elevation, surface type).\n\nNote: When the `data_dir` paramater is omitted, the environmental variable\n`GSIELEV_DATADIR` will be used to get the data directory.\n\n## Operating environment\n\nThis package works with Python 3.9 or later. It uses only the standard library.\n\n## Contributing\n\nPull requests are welcome.\n\n## Author\n\nTakeshi Sagara <sagara@info-proto.com>\n\n## License\n\nThis package can be used under the [MIT](https://choosealicense.com/licenses/mit/) License.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bf440248c41907f4485638fe410bf2aae997360048f8d03e6765cb64b520c8b7",
                "md5": "2b3f76ab418269c0894bc9b64f91406f",
                "sha256": "b0fb3b91e3c7d659e05c108578ba62883a32ea884775c4743193610686fecbde"
            },
            "downloads": -1,
            "filename": "pygsielev-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2b3f76ab418269c0894bc9b64f91406f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 6306,
            "upload_time": "2024-12-17T04:02:38",
            "upload_time_iso_8601": "2024-12-17T04:02:38.969974Z",
            "url": "https://files.pythonhosted.org/packages/bf/44/0248c41907f4485638fe410bf2aae997360048f8d03e6765cb64b520c8b7/pygsielev-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e67074134f2b18197dd77a6417a28e213bfb5271ef5ca5cd9053720d52caf06e",
                "md5": "acd76d21bc31c74a887ea7202601005d",
                "sha256": "cc60c04bea7b749a9134a23624abc45cf31c495bb81294f4f16b7135f7ce565b"
            },
            "downloads": -1,
            "filename": "pygsielev-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "acd76d21bc31c74a887ea7202601005d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 5494,
            "upload_time": "2024-12-17T04:02:41",
            "upload_time_iso_8601": "2024-12-17T04:02:41.098468Z",
            "url": "https://files.pythonhosted.org/packages/e6/70/74134f2b18197dd77a6417a28e213bfb5271ef5ca5cd9053720d52caf06e/pygsielev-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 04:02:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pygsielev"
}
        
Elapsed time: 2.26028s