- wkt: well known text
- 矢量对象通过wkt可以生成文本
- 通过文本可以直接构建矢量对象
>>> from shapely import wkt
>>> from shapely.geometry import Point
>>> pt1 = Point([2, 5])
>>> pt1.wkt
'POINT (2 5)'
>>> pt2 = wkt.loads(pt1.wkt)
>>> pt1 == pt2
True
标签:776,shapely,矢量,import,文本,wkt,pt1 From: https://www.cnblogs.com/alex-bn-lee/p/16927288.html