Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

CS Relief Map Tile Image Generator

An one stop tile image generator of CS Relief Map written in Python, integrated with Luigi and numpy.

What is CS Relief Map (CS立体図) ?

The "CS Relief Map" (CS立体図) is a terrain visualization method with high visibility of Curvature and Slope. This was proposed by Nagano prefecture forest center (長野県林業総合センター).

This implementation is based on these articles.


sudo pip install -r requirements.txt


generate by coordinate

# around Tokachi
python GenerateImageByBounds --west 142.74810791015625 --north 43.25320494908846 --south 42.21224516288584 --east 143.72589111328125 --zoom 14 --workers 4 --local-scheduler

# around Tokyo
python GenerateImageByBounds --west 139.559326171875 --north 35.77994251888403 --south 35.36217605914681 --east 140.2569580078125 --zoom 15 --workers 4 --local-scheduler

# generate each tile (curvature only)
python GenerateImageCurvature --x 29139 --y 12936 --z 15 --local-scheduler

# generate each tile (slope only)
python GenerateImageSlope --x 29139 --y 12936 --z 15 --local-scheduler

# generate each tile
python GenerateImageCSReliefMap --x 29139 --y 12936 --z 15 --local-scheduler
Resizing large image to small image (experimental)
# single tile
python resizeTileImage --x 3641 --y 1616 --z 12 --sourceZ 14 --sourceTask generateImageCSReliefMap --workers 4 --local-scheduler 

# around Tokyo
python GenerateResizedImageByBounds --west 139.559326171875 --north 35.77994251888403 --south 35.36217605914681 --east 140.2569580078125 --zoom 10 --workers 4 --local-scheduler

Utility for coordinate picking

generate by japanese level-1 mesh(1次メッシュ)

python GenerateImageByMeshCodes --meshcodes "[6341,6342]" --zoom 14 --workers 4 --local-scheduler

# resized tile map based on zoom 14 (experimental)
python GenerateImageByMeshCodes --targetTask generateResizedImageByBounds --meshcodes "[6341,6342]" --zoom 10 --workers 4 --local-scheduler

generated result

Generated results are available at CS Relief Map Web Viewer.



MIT License
Copyright (c) 2017 Kunihiko Miyoshi

Generated tile images

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

この地図の作成にあたっては、国土地理院長の承認を得て、同院発行の基盤地図情報を使用した。(承認番号 平29情使、 第392号)

Elevation data source

Currently the data downloader is available for Japan only. But this project is easily extendable for any regions, any countries.

You can’t perform that action at this time.