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
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: 500ms⋅