gpt4 book ai didi

c - 如何在我自己的 PostgreSQL 扩展中使用内部 PostGIS 函数?

转载 作者:太空宇宙 更新时间:2023-11-04 03:55:52 25 4
gpt4 key购买 nike

在我自己的 PostgreSQL 扩展中是否有一种稳定且可移植的方式来使用 PostGIS 函数?我想通过直接从 postgis-$version.so(在 PostgreSQL 的 $libdir 中)调用此函数来使用我的 C 代码中的相交函数来处理几何类型。

最佳答案

您通常应该通过 SPIfmgr 快速路径调用来调用 SQL 级别的 PostGIS 函数来执行此操作。

参见 this related question about using hstore from C .

关于c - 如何在我自己的 PostgreSQL 扩展中使用内部 PostGIS 函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16507196/

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