Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- qgis
- postgrest
- postgis
- table
- idw
- rc.local
- 테이블목록
- 하위디렉토리
- HP스펙터x360
- pygqis
- table비교
- posgresql
- tablewidget
- Openlayers
- 네이버클라우드
- psql
- posgtresql
- 테이블 중복조회
- PostgreSQL
- 테이블리턴
- HP스펙터
- 와콤뱀부슬레이트
- Python
- ST_InvDistWeight4ma
- shape내려받기
- 순댓국밥
- 공주페이
- 데이터비교
- shp내려받기
- SQL
Archives
- Today
- Total
목록shape내려받기 (1)
오픈소스의 일상
[PYQGIS] 원하는 Shape 파일을 내려받기
file_path = "내려받는shape 파일명.shp" encoding = "windows-949" crs = QgsCoordinateReferenceSystem('EPSG:5179') format = "ESRI Shapefile" for layer in QgsProject.instance().mapLayers().values(): if layer.type() == QgsMapLayer.VectorLayer: if layer.name() == "원하는레이어명": writer = QgsVectorFileWriter.writeAsVectorFormat(layer,file_path,encoding,layer.crs(),format) 조금만 응용하면 원하는 코드가 되지 않을까 합니다.
오픈소스/PYQGIS
2023. 9. 12. 13:10