Explorar o código

Fixing write method for a generic geometry

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54380 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli %!s(int64=12) %!d(string=hai) anos
pai
achega
5cfe700f70
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/python/pygrass/vector/geometry.py

+ 1 - 1
lib/python/pygrass/vector/geometry.py

@@ -217,7 +217,7 @@ class Geo(object):
 
     def write(self):
         """Write the centroid to the Map."""
-        libvect.Vect_write_line(self.c_mapinfo, libvect.GV_CENTROID,
+        libvect.Vect_write_line(self.c_mapinfo, self.gtype,
                                 self.c_points, self.c_cats)