我正尝试通过 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/