Code Monkey home page Code Monkey logo

convert_fgd_dem_cli's Introduction

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

for macOS

% brew install gdal
% pipenv sync

Usage

% pipenv run python -m convert_fgd_dem

If it doesn't work, reinstall.

% brew install gdal
% pipenv install
% pipenv uninstall gdal
% pipenv install numpy
% pipenv run pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"

for developers

  • execute the following additional commands.
pipenv install -d

help

% pipenv run python -m convert_fgd_dem --help
Usage: __main__.py [OPTIONS]

Options:
  --import_path TEXT  変換対象のパスを指定(「xml」「.xmlが格納されたディレクトリ」「.xmlが格納された.zip」が対象です。
                      ) default=./DEM/FG-GML-6441-32-DEM5A.zip

  --output_path TEXT  GeoTiffを格納するディレクトリ default=./GeoTiff
  --output_epsg TEXT  書き出すGeoTiffのEPSGコード default=EPSG:4326
  --rgbify BOOLEAN    terrain rgbを作成するか選択 default=False

  --help              Show this message and exit.

sample

  • Search of 644132 from 数値標高モデル with https://fgd.gsi.go.jp/download
  • Download FG-GML-6441-32-DEM5A.zip
  • Make directory DEM
  • Store FG-GML-6441-32-DEM5A.zip in DEM
  • Run pipenv run python -m convert_fgd_dem

convert_fgd_dem_cli's People

Contributors

kenseii avatar nokonoko1203 avatar selfsryo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

convert_fgd_dem_cli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.