在将栅格数据加载到postgres表时出现错误
ERROR: function st_bandmetadata(public.raster, integer[]) does not exist
LINE 1: SELECT array_agg(pixeltype)::text[] FROM st_bandmetadata($1...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: SELECT array_agg(pixeltype)::text[] FROM st_bandmetadata($1, ARRAY[]::int[]);
CONTEXT: SQL function "_raster_constraint_pixel_types" during inlining
COPY elevation_hi, line 1: "1 01000001006A98816335DA4E3F6A98816335DA4EBFA2221ECF131C64C0FEE6DF13C4963640000000000000000000000000..."
3139
对此有任何想法吗?
我尝试创建表的数据库中存在以下扩展名:
CREATE EXTENSION postgis
CREATE EXTENSION postgis_topology
CREATE EXTENSION fuzzystrmatch
如果您有任何想法,请帮助我。
我为数据库设置的搜索路径是::
search_path
----------------------------------------------
"$user", public, rasters, postgis, pg_catalog
post_GIS version
SELECT postgis_version();
postgis_version
---------------------------------------
2.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
如果您早些时候遇到过这个问题,请告诉我。