gpt4 book ai didi

postgresql - Postgis ST_AsMVT() 在 MacOSX High Sierra 上返回缺少的 libprotobuf-c

转载 作者:行者123 更新时间:2023-11-29 12:02:37 25 4
gpt4 key购买 nike

我尝试使用此查询从我的几何表中获取 MVT 格式

SELECT ST_AsMVT(q)
FROM (
SELECT
id_kelurahan,
nama_kelurahan,
ST_AsMVTGeom(
feature,
TileBBox(11, 1150, 1724, 3857),
4096,
0,
false
) geom
FROM kelurahan
WHERE ST_Intersects(feature, (SELECT ST_Transform(ST_MakeEnvelope(22.1484375, -76.72022329036133, 22.32421875, -76.6797849031069, 4326), 3857)))
) q

如您所见,我使用 Postgis 扩展函数 ST_AsMVT() 将我的内部查询结果转换为 MVT,但它没有获得预期结果 (MVT),而是生成了缺少的 libprotobuf-c 错误。我使用的是 MacOSX High Sierra 10.13.1,Postgis 版本 2.4.0。

我已经研究了错误并尝试了一些解决方案

brew install protobuf
brew install protobuf-c

两个过程都成功结束,没有错误。已经重启我的设备,但 missing libprotobuf-c 错误仍然发生。

最佳答案

尝试使用此命令安装 postgis:

brew install postgis --with-protobuf-c

我上次遇到过这个问题,这在 mac high sierra 上解决了。

关于postgresql - Postgis ST_AsMVT() 在 MacOSX High Sierra 上返回缺少的 libprotobuf-c,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48629891/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com