您的位置:首页 > 其它

shapely and geos break在distance方法

2015-11-22 16:19 357 查看

问题

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: