user:thomas 由使用者建立的 Gists
user:thomas
title:mygist Gists 的標題
title:mygist
filename:myfile.txt Gists 的檔案名稱
filename:myfile.txt
extension:yml Gists 的副檔名
extension:yml
language:go Gists 的程式語言
language:go
topic:homelab gists with given topic
topic:homelab
註冊
登錄
加入 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
이후 퍼미션 설정 필수
由 Opengist 提供支持 ⋅ Load: 538ms⋅