[GRASS-SVN] r62485 - grass/trunk/lib/python/pygrass/vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 30 01:12:54 PDT 2014
Author: zarch
Date: 2014-10-30 01:12:54 -0700 (Thu, 30 Oct 2014)
New Revision: 62485
Modified:
grass/trunk/lib/python/pygrass/vector/geometry.py
Log:
pygrass: Fix perimeter method for areas and isles
Modified: grass/trunk/lib/python/pygrass/vector/geometry.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/geometry.py 2014-10-29 21:38:36 UTC (rev 62484)
+++ grass/trunk/lib/python/pygrass/vector/geometry.py 2014-10-30 08:12:54 UTC (rev 62485)
@@ -1321,7 +1321,7 @@
"""Return the perimeter value of an Isle.
"""
border = self.points()
- return libvect.Vect_area_perimeter(border.c_points)
+ return libvect.Vect_line_geodesic_length(border.c_points)
class Isles(object):
@@ -1562,7 +1562,7 @@
"""
border = self.get_points()
- return libvect.Vect_area_perimeter(border.c_points)
+ return libvect.Vect_line_geodesic_length(border.c_points)
def read(self, line=None, centroid=None, isles=None):
self.boundary = self.get_points(line)
More information about the grass-commit
mailing list