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
/etc/postgresql/16/main
sudo systemctl reload [email protected]
GIS에서 가장 많이 쓰이는 전통적 방식이에요.
Shapefile (.shp, .shx, .dbf, …)
깃 클론(git clone)을 하면 서버 저장소가 그대로 복제되어 로컬에 작업 가능한 레포지토리 폴더가 생깁니다. 구조는 다음과 같습니다:
git clone
project-name/ ← 클론된 프로젝트 루트 디렉터리 ├─ .git/ ← 깃 내부 데이터 저장소 (원격과 동기화, 브랜치, 커밋 내역 등) ├─ README.md ← 서버 저장소에 있던 일반 파일들 ├─ src/ ← 서버 저장소에 있던 소스 코드 디렉터리 ├─ package.json ← 예시: Node.js 프로젝트라면 포함될 수 있는 파일 └─ ... ← 서버 저장소에 있던 나머지 파일들
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
이후 퍼미션 설정 필수
커맨드 라인에서 새 레포리지터리 생성
touch README.md git init git checkout -b main git add README.md git commit -m "first commit" git remote add origin https://gitea.rsonesoft.com/user/project.git git push -u origin main
이 문서는 여러 개의 작은 GeoJSON 파일을 하나로 병합하고, QGIS를 이용하여 데이터베이스(PostGIS 등)에 효율적으로 연동하는 절차를 안내합니다.
Powered by Opengist ⋅ Load: 302ms⋅