pgsql2shp postgresql 错误
Error in pgsql2shp postgresql
我想使用以下命令行从我的 postgresql 数据库中转储一个 shapefile:
pgsql2shp -f output.shp -h localhost -u postgres -P admin parcel "SELECT * FROM parcel.export_output WHERE ParcelNoEng=116"
但它继续显示错误:
ERROR: function postgis_version() does not exist
LINE 1: SELECT postgis_version()
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
我该怎么做才能让它发挥作用?
我已将 Postgresql/version/bin 添加到我的环境变量中。
您错过了 PostGIS extension
. Execute the following command in your PostgreSQL using a client of your choice, e.g. psql
,然后重试:
CREATE EXTENSION postgis;
我想使用以下命令行从我的 postgresql 数据库中转储一个 shapefile:
pgsql2shp -f output.shp -h localhost -u postgres -P admin parcel "SELECT * FROM parcel.export_output WHERE ParcelNoEng=116"
但它继续显示错误:
ERROR: function postgis_version() does not exist
LINE 1: SELECT postgis_version()
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
我该怎么做才能让它发挥作用? 我已将 Postgresql/version/bin 添加到我的环境变量中。
您错过了 PostGIS extension
. Execute the following command in your PostgreSQL using a client of your choice, e.g. psql
,然后重试:
CREATE EXTENSION postgis;