JPGIS DEM tool
A CLI tool to convert Japanese DEM XML files into Geotifs. A Python port of tmizu23/demtool.
Installation
Install with pip
pip install jpgis-dem
Usage
Convert a single xml file
jpgis-dem xml2tif FG-GML-3622-57-DEM10B-20190510.xml 3622-57.geotiff
Convert a 10m zip containing a single xml file
jpgis-dem xml2tif FG-GML-3622-57-DEM10B.zip 3622-57.geotiff
Convert a 5m zip containing multiple xml files into a merged geotiff
jpgis-dem xml2tif FG-GML-3624-31-DEM5B.zip 3624-31.geotiff
To have more control over the output tif, you can make a json file of parameters to be passed to rasterio
# profile.json
{
"compress": "zstd",
"zstd_level": 1,
"blockxsize": 2048,
"blockysize": 2048
}
then pass that path as --raster-profile
jpgis-dem xml2tif --raster-profile profile.json FG-GML-3624-31-DEM5B.zip 3624-31.geotiff
Keys set to null will be removed from the default profile, which is
DEFAULT_RASTER_PROFILE = {
"count": 1,
"driver": "GTiff",
"dtype": "float32",
"compress": "deflate",
"tiled": true,
"blockxsize": 512,
"blockysize": 512,
"interleave": "pixel",
"nodata": -9999,
}
Release files for jpgis-dem 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jpgis_dem-0.0.9.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jpgis_dem-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / jpgis_dem-0.0.9.tar.gz
| Download URL | jpgis_dem-0.0.9.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e0c68ec3a9f2f87145e76d950dbafd266aee7320b6f691efed4fd1e0b13b45b
|
|
BLAKE2b-256 checksum How to use checksums |
4538504434678b478e32660f1a9216e721cb1d52f681a1dfa51b74f283075bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"20.04","id":"focal","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / jpgis_dem-0.0.9-py3-none-any.whl
| Download URL | jpgis_dem-0.0.9-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cac58599f04e8ce2b2d80d504c825d02d2cf31db217f08b2580e8db47a08c923
|
|
BLAKE2b-256 checksum How to use checksums |
9b83de1c2bd045305e4ccddc3148f306578f83f7e57f94521fa739c380d32215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"20.04","id":"focal","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|