Skip to content

convert DEM ("xml" or "folder containing .xml" or ".zip containing .xml") to GeoTiff and Terrain RGB (Tiff).

License

Notifications You must be signed in to change notification settings

MIERUNE/convert_fgd_dem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert_fgd_dem

Overview

You can get the DEM data in xml format for any location from the following site. https://fgd.gsi.go.jp/download

Run the tool with downloaded "xml" or "directory containing .xml" or ".zip containing .xml" to generate GeoTiff and Terrain RGB (Tiff).

Installation

  • Install using pip.
% pip install git+https://github.com/MIERUNE/convert_fgd_dem#egg=convert_fgd_dem
  • using pipenv
% pipenv install git+https://github.com/MIERUNE/convert_fgd_dem#egg=convert_fgd_dem

usage

download DEM

write python script

from pathlib import Path

from src.convert_fgd_dem import Dem


def main():
    dem_path = Path("./data/FG-GML-6441-31-DEM5A.zip")
    dem = Dem(dem_path)
    print(dem.bounds_latlng)


if __name__ == '__main__':
    main()

run script

% pipenv run python main.py
{'lower_left': {'lat': 42.916666667, 'lon': 141.125}, 'upper_right': {'lat': 43.0, 'lon': 141.25}}

About

convert DEM ("xml" or "folder containing .xml" or ".zip containing .xml") to GeoTiff and Terrain RGB (Tiff).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages