postgresql - 错误 : function addgeometrycolumn does not exist: When trying to import file into POSTGIS database by QGIS DB Manager

标签 postgresql postgis qgis

我正尝试通过 QGIS 中的数据库管理器将 shapefile 导入我的 POSTGIS 数据库,但出现错误,我不知道如何解决:

ERROR:  function addgeometrycolumn(unknown, unknown, unknown, integer, unknown, integer) does not exist
LINE 1: SELECT AddGeometryColumn('demoschema','Bomen',NULL,31370,'MU...
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

那我需要做什么呢?

最佳答案

在 postgresSQL 中没有 postgis 扩展,如果您尝试向 postgresSQL 添加任何空间层,则会出现上述错误。

在 pgadmin 中右键单击扩展并检查是否保存了 postgis 扩展。 如果扩展 postgis 选项不存在,您可以按照以下步骤操作 在 postgres 中安装 postgis https://www.youtube.com/watch?v=afK8GWpb8RU

关于postgresql - 错误 : function addgeometrycolumn does not exist: When trying to import file into POSTGIS database by QGIS DB Manager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44618374/

相关文章:

RPostgreSQL 和 DBI : "operator does not exist: uuid = text"

arrays - 如何使用 IN 运算符查询 jsonb 数组

postgresql - 在 postgresql 中使用 st_contains 在几何上连接两个大型 postgresql 表的最快方法是什么?

sql - 从连接表中获取多个不同的值

postgis - 获取几何字段的SRID

python - 如何在 Windows 上正确设置 PyQGIS 环境?

ubuntu - 如何在 Lucid linux 中获取 qgis 1.3.0 中的 "export to mapserver map file"选项?

qgis - QGIS 中的缓冲区无法正常工作

sql - 两个unix时间戳之间的Postgresql查询

PostgreSQL:将用户定义的函数从一个数据库复制/导入到另一个数据库