使用ogr2​​ogr将shapefile加载到Postgis中的特定表


12

我已经在postgis中创建了一个几何表。我想使用ogr2​​ogr将几个shapefile加载到该表中。但是我没有找到可以指定该表的参数。

ogr2ogr -append -f "PostgreSQL" PG:"dbname=db and so on" shapefile.shp 

而已。如何添加一些参数以指定表?

Answers:


16

要明确说明尼克的答案:

ogr2ogr -append -f "PostgreSQL" PG:"dbname=db" shapefile.shp -nln mytable 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.