lem ファイルを GeoTIFF に変換するスクリプトです。
- lem ファイル仕様
- https://www.gsi.go.jp/MAP/CD-ROM/dem5m/doc/info5m1.htm
- ただし、データ間隔によりレコード数等は説明と合致しないことがあります。
lem ファイルを GeoTIFF に変換するスクリプトです。
| # -*- coding: utf-8 -*- | |
| """ | |
| *************************************************************************** | |
| * * | |
| * This program is free software; you can redistribute it and/or modify * | |
| * it under the terms of the GNU General Public License as published by * | |
| * the Free Software Foundation; either version 2 of the License, or * | |
| * (at your option) any later version. * | |
| * * |
| # -*- coding: utf-8 -*- | |
| import math | |
| from qgis.PyQt.QtCore import (QCoreApplication, QVariant) | |
| from qgis.core import (QgsPointXY, QgsGeometry, QgsFeature, | |
| QgsField, QgsFields, QgsWkbTypes, QgsProject, QgsUnitTypes, | |
| QgsCoordinateReferenceSystem, QgsCoordinateTransform) | |
| from qgis.core import (QgsProcessing, | |
| QgsFeatureSink, |
| #!/usr/bin/python | |
| """ | |
| 1,-42000.75,108723.75,132.60,0 | |
| 2,-42000.25,108723.75,132.30,0 | |
| 3,-42001.75,108723.25,132.80,0 | |
| : | |
| : | |
| という形式の CSV ファイルを | |
| -42000.750 108723.750 132.600 |