Postgis ST_轴(几何体)不存在?

Postgis ST_轴(几何体)不存在?,postgis,Postgis,没有道理,这个 从t中选择不同的geometrytypegeom;-多边形 从t中选择ST_近似值; -错误:函数st_approximateMeaxisGeometry不存在 -第1行:从t…中选择ST_近似坐标轴几何。。。 选择PostGIS_Version=3.0使用_GEOS=1使用_PROJ=1使用_STATS=1 选择select postgis_full_version=postgis=3.0.1 ec2a9aa[EXTENSION]PGSQL=120 GEOS=3.8.0-CAP

没有道理,这个

从t中选择不同的geometrytypegeom;-多边形 从t中选择ST_近似值; -错误:函数st_approximateMeaxisGeometry不存在 -第1行:从t…中选择ST_近似坐标轴几何。。。 选择PostGIS_Version=3.0使用_GEOS=1使用_PROJ=1使用_STATS=1

选择select postgis_full_version=postgis=3.0.1 ec2a9aa[EXTENSION]PGSQL=120 GEOS=3.8.0-CAPI-1.13.1 PROJ=6.3.1 LIBXML=2.9.10 LIBJSON=0.13.1 LIBPROTOBUF=1.3.3 WAGYU=0.4.3 Internal

选择Version=postgresql12.3ubuntu12.3-1.pgdg20.04+1。。。64位

\df st_地区和所有其他地区都在那里

\df public.ST_approximateMealAxis=无功能

最后一次检查显示未安装!。。。那么,指南说这个方法需要SFCGAL后端,如何检查它呢?

似乎很简单

创建扩展postgis_sfgal; \df public.ST_轴 感谢@JGH和


现在postgis的完整版本也显示了SFCGAL版本,SFCGAL=1.3.7。

它应该在那里。。也许这是一个路径问题?请尝试\df public.ST\u approximateMeaxisThank@JGH,我编辑过。您可以使用select postgis\u full\u版本进行检查;我的确实包含SFCGAL=1.3.2tanks@JGH,现在我们找到了问题的原因!。下一步,如何安装SFCGAL?

                                 List of functions
 Schema |           Name           | Result data type | Argument data types | Type
--------+--------------------------+------------------+---------------------+------
 public | st_approximatemedialaxis | geometry         | geometry            | func