Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
当空间计算涉及圆弧时控制内插值。
此数据库选项采用一组以分号分隔的 [键=值] 对(键1=值1;键2=值2;...)。允许的键值为 relative-tolerance-percent 和 absolute-tolerance。
键1=值1;键2=值2;...
relative-tolerance-percent=DOUBLE 使用 relative-tolerance-percent 可指定从 ST_CircularString 线段的中心点到内插的 ST_LineString 线段的距离相对于 ST_CircularString 线段的半径所允许的最大偏差(百分比形式)。relative-tolerance-percent 允许的最小值为 0,表示始终使用 absolute-tolerance 设置。
absolute-tolerance=DOUBLE 使用 absolute-tolerance 可指定从 ST_CircularString 线段的中心点到内插的 ST_LineString 线段的距离所允许的最大绝对偏差(线性单位形式)。absolute-tolerance 允许的最小值也是 SRID 指定的公差。
如果两个键均未指定,relative-tolerance-percent 将缺省为 0.3,这样会在一个完整的圆中给出 40 个点,而 absolute-tolerance 将缺省为 SRID 指定的公差。
如果只指定一个键,另一个键将被设置为其最小值。
如果两个键均被指定,则会生成最少数量的点,以满足所有限制。
无论此数据库选项如何设置,每条曲线段将至少有三个点。此外,插值的 ST_LineString 中的任何两个连续点都不能在彼此的公差范围内。
也可以添加附加点,以确保 ST_LineString 的 ST_Envelope 与原始 ST_CircularString 的相同。