Shapely 1.8.5 中文文档

  1. 主页
  2. 文档
  3. Shapely 1.8.5 中文文档
  4. The Project(Shapely)
  5. Usage(用法)

Usage(用法)

Here is the canonical example of building an approximately circular patch by buffering a point.

这里是通过缓冲一个点来建立一个近似圆形的典型例子。

>>> from shapely.geometry import Point
>>> patch = Point(0.0, 0.0).buffer(10.0)
>>> patch
<shapely.geometry.polygon.Polygon object at 0x...>
>>> patch.area
313.65484905459385

See the manual for more examples and guidance.

更多的示例和指南,请参阅手册。

标签 ,
这篇文章对您有用吗?

我们要如何帮助您?

欢迎留下您的宝贵建议

Please enter your comment!
Please enter your name here