Skip to content

Instantly share code, notes, and snippets.

@tohka
tohka / README.md
Last active March 12, 2025 11:54
lem ファイルを GeoTIFF に変換するスクリプト

lem2gtif.py

概要

lem ファイルを GeoTIFF に変換するスクリプトです。

使い方

@tohka
tohka / check_widget.py
Created November 3, 2020 03:35
QGIS の QgsProcessingParameter* がどのようなインタフェースで表示されるか確認するやつ
# -*- 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