2019년 2월 21일 목요일

[QGIS3]pyqgis 좌표계 변경

_layer = iface.activeLayer()
a = _layer.sourceCrs()
b = QgsCoordinateReferenceSystem("EPSG:5186")
_layer.setCrs(b)

mapCanvas = iface.mapCanvas()
extMap = mapCanvas.extent()
transform = QgsCoordinateTransform(a, b, QgsProject.instance())
extMap = coordTrans.transform(extMap, QgsCoordinateTransform.ForwardTransform)
mapCanvas.setDestinationCrs(b)
mapCanvas.freeze(False)
mapCanvas.setExtent(extMap

댓글 없음:

댓글 쓰기

docker redmine 설치

docker-composer.yml version: '3.1' services:      redmine:           image: redmine           restart: always           container_na...