user:thomas gists created by user
user:thomas
title:mygist gists with given title
title:mygist
filename:myfile.txt gists having files with given name
filename:myfile.txt
extension:yml gists having files with given extension
extension:yml
language:go gists having files with given language
language:go
topic:homelab gists with given topic
topic:homelab
Register
Login
Joined 1750840855
psql -h localhost -U postgres -d dadgis \ -c "\COPY (SELECT * FROM public.zzz_forest_info_51760) TO './forest_51760.csv' CSV"
데이터 건수 : 557,918 건
45.5GB TIF 파일
/etc/postgresql/16/main
sudo systemctl reload [email protected]
GIS에서 가장 많이 쓰이는 전통적 방식이에요.
Shapefile (.shp, .shx, .dbf, …)
OSGeo4W와 ogr2ogr를 이용하여 Windows 환경에서 SHP 파일 여러 개를 하나의 PostGIS 테이블로 적재하는 방법 정리
shp2pgsql의 COPY 동작 방식에 대해 자세히 설명하겠습니다.
shp2pgsql
shp2pgsql -D -W "UTF-8" -s 4326 data.shp public.roads
-D 옵션의 효과:
-D
원격서버에 적재시 .pgpass파일이 필요
nano ~/.pgpass
.pgpass파일에 다음 형식으로 작성
hostname:port:database:username:password
이후 퍼미션 설정 필수
Powered by Opengist ⋅ Load: 230ms⋅