问题
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