def required(ob):
"""Return an object that meets Shapely requirements for self-owned
C-continguous data, copying if necessary, or just return the original
object."""
if has_numpy and hasattr(ob, '__array_interface__'):
return numpy.require(ob, numpy.float64, ["C", "OWNDATA"])
else:
return ob
coords.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录