赞
踩
strong@foreverstrong:~$ python Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from shapely.geometry import Polygon >>> polygon = Polygon([(0, 0), (1, 1), (1, 0)]) >>> polygon.area 0.5 >>> >>> polygon.length 3.414213562373095 >>> >>> polygon.bounds (0.0, 0.0, 1.0, 1.0) >>> >>> exit() strong@foreverstrong:~$
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。