Skip to main content

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)

Source distribution for jpgis-dem 0.0.9
File Size Uploaded
jpgis_dem-0.0.9.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jpgis-dem 0.0.9
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page