Geoserver ERROR: function postgis_lib_version()

前端 未结 1 820
旧时难觅i
旧时难觅i 2021-01-17 22:57

in geoserver whene i need to creat a new data store after to creat new workspace, i have this error

Error creating data store, check the parameters. Error m

1条回答
  •  北海茫月
    2021-01-17 23:55

    That error implies that you are attempting to add a PostgreSQL database rather than a PostGIS database. You need to add the PostGIS extension to the database with this command:

    psql -d yourdatabase -c "CREATE EXTENSION postgis;"
    psql -d yourdatabase -c "CREATE EXTENSION postgis_topology;"
    

    This will then allow you to store geometries (and geographies) in your tables which GeoServer can then display as map layers.

    0 讨论(0)
提交回复
热议问题