File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/plugins/fTools/tools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,17 +161,17 @@ def restoreGui( self ):
161
161
162
162
def geomVertexCount ( geometry ):
163
163
geomType = geometry .type ()
164
- if geomType == 1 : # line
164
+ if geomType == QGis . Line :
165
165
if geometry .isMultipart ():
166
166
pointsList = geometry .asMultiPolyline ()
167
- points = sum (pointsList , [])
167
+ points = sum ( pointsList , [] )
168
168
else :
169
169
points = geometry .asPolyline ()
170
170
return len ( points )
171
- elif geomType == 2 : # polygon
171
+ elif geomType == QGis . Polygon :
172
172
if geometry .isMultipart ():
173
173
polylinesList = geometry .asMultiPolygon ()
174
- polylines = sum (polylinesList , [])
174
+ polylines = sum ( polylinesList , [] )
175
175
else :
176
176
polylines = geometry .asPolygon ()
177
177
points = []
You can’t perform that action at this time.
0 commit comments