The Point constructor takes positional coordinate values or point tuple parameters.
点的构造函数接受位置坐标值或点的元组参数。
>>> from shapely import Point
>>> point = Point(0.0, 0.0)
>>> q = Point((0.0, 0.0))
A Point has zero area and zero length.
点的面积、长度均为零。
>>> point.area
0.0
>>> point.length
0.0
Its x-y bounding box is a (minx, miny, maxx, maxy)
tuple.
它的x-y边界是一个(minx, miny, maxx, maxy)元组。点的边界坐标就是点本身的坐标值。
>>> point.bounds
(0.0, 0.0, 0.0, 0.0)
Coordinate values are accessed via coords, x, y, and z properties.
坐标值通过coords、x、y和z属性访问。
>>> list(point.coords)
[(0.0, 0.0)]
>>> point.x
0.0
>>> point.y
0.0
Coordinates may also be sliced. New in version 1.2.14.
coords属性也支持切片操作。1.2.14版的新内容。
>>> point.coords[:]
[(0.0, 0.0)]
The Point constructor also accepts another Point instance, thereby making a copy.
点的构造函数也接受另一个点的实例,从而产生一个副本。
>>> Point(point)
<POINT (0 0)>