[英]shapely and geos break in distance method
我在使用距離方法時遇到了問題(我懷疑與geos包不兼容)。
如下代碼:
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)
我正在運行CentOS 6,python 2.6,geos 3.4.2(盡管它創建了從libgeos_c到1.8.2的鏈接)
谷歌搜索它產生了一些舊的帖子,並沒有真正幫助我。
謝謝,拉茲
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.