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
shapely and geos break在distance方法
原文:http://www.cnblogs.com/kaituorensheng/p/4986077.html