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
上一篇:Service 中添加同步块防止并发 重复


下一篇:到底该不该熟悉掌握struts2的ONGL呢?