[GRASS-SVN] r51071 - grass/trunk/gui/wxpython/vdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 16 06:53:05 EDT 2012


Author: martinl
Date: 2012-03-16 03:53:04 -0700 (Fri, 16 Mar 2012)
New Revision: 51071

Modified:
   grass/trunk/gui/wxpython/vdigit/toolbars.py
   grass/trunk/gui/wxpython/vdigit/wxdigit.py
Log:
wxGUI/vdigit: GetFeatureType() return ftype in lowercase


Modified: grass/trunk/gui/wxpython/vdigit/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/toolbars.py	2012-03-16 10:20:06 UTC (rev 51070)
+++ grass/trunk/gui/wxpython/vdigit/toolbars.py	2012-03-16 10:53:04 UTC (rev 51071)
@@ -750,16 +750,16 @@
         self.EnableUndo(False)
         self.EnableRedo(False)
         
-        if fType == 'Point':
+        if fType == 'point':
             for tool in (self.addLine, self.addBoundary, self.addCentroid,
                          self.addArea, self.moveVertex, self.addVertex,
                          self.removeVertex, self.editLine):
                 self.EnableTool(tool, False)
-        elif fType == 'Line String':
+        elif fType == 'linestring':
             for tool in (self.addPoint, self.addBoundary, self.addCentroid,
                          self.addArea):
                 self.EnableTool(tool, False)
-        elif fType == 'Polygon':
+        elif fType == 'polygon':
             for tool in (self.addPoint, self.addLine, self.addBoundary, self.addCentroid):
                 self.EnableTool(tool, False)
         elif fType:

Modified: grass/trunk/gui/wxpython/vdigit/wxdigit.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdigit.py	2012-03-16 10:20:06 UTC (rev 51070)
+++ grass/trunk/gui/wxpython/vdigit/wxdigit.py	2012-03-16 10:53:04 UTC (rev 51071)
@@ -1632,7 +1632,7 @@
     def GetFeatureType(self):
         """!Get feature type for OGR layers
 
-        @return feature type as string (Point, Line String, Polygon)
+        @return feature type as string (point, linestring, polygon)
         @return None for native format
         """
         return Vect_get_finfo_geometry_type(self.poMapInfo)



More information about the grass-commit mailing list