개발
이미 변환된 db 에 gpkg 를 추가로 변환하고 싶을 때
내공얌냠
2021. 9. 28. 16:42
기존에 convert 한 데에 합치고 싶으면
-f 대신 -append 옵션을 쓰면 된다.
(DB 명이 test 인 곳에 peak2.gpkg 파일의 내용을 추가한다.)
ogr2ogr -append "PG:dbname=test" peak2.gpkg
References
https://gdal.org/programs/ogr2ogr.html
ogr2ogr — GDAL documentation
Define the geometry type for the created layer. One of NONE, GEOMETRY, POINT, LINESTRING, POLYGON, GEOMETRYCOLLECTION, MULTIPOINT, MULTIPOLYGON, MULTILINESTRING, CIRCULARSTRING, COMPOUNDCURVE, CURVEPOLYGON, MULTICURVE, and MULTISURFACE non-linear geometry
gdal.org
728x90
반응형