Skip to content

Commit

Permalink
Merge pull request #25 from MIERUNE/develop
Browse files Browse the repository at this point in the history
バージョン1.0をmasterにマージ
  • Loading branch information
nokonoko1203 authored Jun 23, 2021
2 parents c9fe754 + e0ecb5c commit 872ddeb
Show file tree
Hide file tree
Showing 17 changed files with 324 additions and 766 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.DS_Store
!.gitkeep
/__pycache__/
__pycache__/
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
# ElevationTile4JP
![](icon.png)

## Overview

This is a QGIS plugin that downloads elevation tiles and converts them to GeoTiff.
<br>
![](./img/mov.gif)

This plugin is download of all `gis elevation tile`([地理院タイルについて](https://maps.gsi.go.jp/development/siyou.html)) in map canvas.
After that merge and add layer.

## Usage
- Specify the area to get DEM with the map canvas
- Click plugin icon or select Plugin --> ElevationTile4JP in menu bar
- Select the zoom level of the tiles
- Set the name of the output file
- Select the outpu file CRS
- Click OK and the processed file will be added to the map canvas

![](img/dialog.png)

## Data source
[Elevation tile](https://maps.gsi.go.jp/development/ichiran.html#dem) of [Geospatial Information Authority of Japan](https://www.gsi.go.jp/)

## Note
- This plugin is ready-to-use but the data source will be decimated during the process. If you need accurate data, use [QuickDEM4JP](https://github.com/MIERUNE/QuickDEM4JP).
- The original tile coordinate reference system is web mercator (EPSG:3857) and exported file will be reprojected to the input value.

---

### License
GNU GENERAL PUBLIC LICENSE 2
8 changes: 3 additions & 5 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
"""
/***************************************************************************
ElevationTileforJP
ElevationTile4JP
A QGIS plugin
画面内の標高タイルを取得し、GeoTiffに変換します
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
The plugin to convert GSI elevation tile to GeoTiff.
-------------------
begin : 2021-05-31
git sha : $Format:%H$
Expand All @@ -25,11 +24,10 @@

# noinspection PyPep8Naming
def classFactory(iface): # pylint: disable=invalid-name
"""Load ElevationTileForJP class from file ElevationTileForJP.
"""Load ElevationTile4JP class from file ElevationTile4JP.
:param iface: A QGIS interface instance.
:type iface: QgsInterface
"""
#
from .elevation_tile_for_jp import ElevationTileForJP
return ElevationTileForJP(iface)
8 changes: 2 additions & 6 deletions elevation_tile_for_jp.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
"""
/***************************************************************************
ElevationTileforJP
ElevationTile4JP
A QGIS plugin
画面内の標高タイルを取得し、GeoTiffに変換します
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin : 2021-05-31
git sha : $Format:%H$
Expand All @@ -28,9 +27,6 @@

import os.path

# Initialize Qt resources from file resources.py
from .resources import *

from .get_tiles import GetTilesWithinMapCanvas


Expand Down Expand Up @@ -104,7 +100,7 @@ def add_action(
return action

def initGui(self):
icon_path = ':/plugins/ElevationTile4JP/icon.png'
icon_path = self.plugin_dir + '/icon.png'
self.add_action(
icon_path,
text=self.tr(u'ElevationTile4JP'),
Expand Down
11 changes: 2 additions & 9 deletions elevation_tile_for_jp_dialog.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
"""
/***************************************************************************
ElevationTileforJPDialog
ElevationTile4JP
A QGIS plugin
画面内の標高タイルを取得し、GeoTiffに変換します
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin : 2021-05-31
git sha : $Format:%H$
Expand All @@ -27,18 +27,11 @@
from qgis.PyQt import uic
from qgis.PyQt import QtWidgets

# This loads your .ui file so that PyQt can populate your plugin with the elements from Qt Designer
FORM_CLASS, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'elevation_tile_for_jp_dialog_base.ui'))


class ElevationTileforJPDialog(QtWidgets.QDialog, FORM_CLASS):
def __init__(self, parent=None):
"""Constructor."""
super(ElevationTileforJPDialog, self).__init__(parent)
# Set up the user interface from Designer through FORM_CLASS.
# After self.setupUi() you can access any designer object by doing
# self.<objectname>, and you can use autoconnect slots - see
# http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
# #widgets-and-dialogs-with-auto-connect
self.setupUi(self)
Loading

0 comments on commit 872ddeb

Please sign in to comment.