无法将栅格数据导入postgis
Unable to import raster data to postgis
我一直在尝试使用命令将我的 SRTM 栅格数据导入我的 postgis,但产生了以下错误(尝试了多次)。有什么东西不见了吗?感谢您的帮助
错误信息:
ERROR: relation "test" already exists
ERROR: current transaction is aborted, commands ignored until end of transaction block
欢迎来到 SO。
错误消息说您正在尝试创建一个已经存在的关系。要么将其放入您的数据库中 ..
DROP TABLE test;
.. 或者告诉 raster2pgsql
通过在命令中添加参数 -d
来为您完成。
-d Drops the table, then recreates it and populates
类似
raster2pgsql -I -z 10x10 -C -F -s 4326 file.hgt -d public.test | psql ...
另一种方法是使用 -a
将数据附加到现有的 table
-a Appends raster into current table, must be exactly the same table schema.
我一直在尝试使用命令将我的 SRTM 栅格数据导入我的 postgis,但产生了以下错误(尝试了多次)。有什么东西不见了吗?感谢您的帮助
错误信息:
ERROR: relation "test" already exists
ERROR: current transaction is aborted, commands ignored until end of transaction block
欢迎来到 SO。
错误消息说您正在尝试创建一个已经存在的关系。要么将其放入您的数据库中 ..
DROP TABLE test;
.. 或者告诉 raster2pgsql
通过在命令中添加参数 -d
来为您完成。
-d Drops the table, then recreates it and populates
类似
raster2pgsql -I -z 10x10 -C -F -s 4326 file.hgt -d public.test | psql ...
另一种方法是使用 -a
将数据附加到现有的 table
-a Appends raster into current table, must be exactly the same table schema.