计算几何周长

计算几何周长
发布日期: 2016-10-06 更新日期: 1970-01-01 编辑:yubiao 浏览次数: 2974

 from osgeo import ogr

wkt = "LINESTRING (1181866.263593049 615654.4222507705, 1205917.1207499576 623979.7189589312, 1227192.8790041457 643405.4112779726, 1224880.2965852122 665143.6860159477)"
geom = ogr.CreateGeometryFromWkt(wkt)
print "Length = %d" % geom.Length()
说明:

计算几何周长