shapely and geos break在distance方法

简介:

问题

from shapely.geometry import Point
print Point(0,0).distance(Point(1,1))

报错

python: GeometryComponentFilter.cpp:34: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed.
Aborted (core dumped)

貌似是GEOS的bug

运行环境

I’m running CentOS 6, python 2.7, geos 3.4.2 (although it creates a link from libgeos_c to 1.8.2)

谷歌策略

卸了重装

复制代码
svn co http://svn.osgeo.org/geos/trunk@3960 geos-svn
cd geos-svn
./autogen.sh
./configure
make
make check
复制代码

测试通过安装

make install
ldconfig

 





本文转自jihite博客园博客,原文链接:http://www.cnblogs.com/kaituorensheng/p/4986077.html,如需转载请自行联系原作者

相关文章
|
存储 索引
LeetCode 73. Set Matrix Zeroes
给定一个m * n 的矩阵,如果当前元是0,则把此元素所在的行,列全部置为0. 额外要求:是否可以做到空间复杂度O(1)?
94 0
LeetCode 73. Set Matrix Zeroes
|
Python
“cosine_distance“ “KMeansClusterer“ is not defined
“cosine_distance“ “KMeansClusterer“ is not defined
99 0
|
算法 C# 索引
算法题丨Move Zeroes
描述 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
1161 0
[LeetCode]--73. Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use extra space? A straight forward solution us
975 0
leetcode Set Matrix Zeroes
Question Given a m x n matrix, if an element is 0, set its entire row and column to 0.
778 0