几何中的计数点

几何中的计数点
发布日期: 2016-10-06 更新日期: 1970-01-01 编辑:yubiao 浏览次数: 3362

 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 "Geometry has %i points" % (geom.GetPointCount())
说明:

几何中的计数点