Jelajahi Sumber

wxGUI/vdigit: GetFeatureType() return ftype in lowercase

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51071 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 tahun lalu
induk
melakukan
66bc57495a
2 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 3 3
      gui/wxpython/vdigit/toolbars.py
  2. 1 1
      gui/wxpython/vdigit/wxdigit.py

+ 3 - 3
gui/wxpython/vdigit/toolbars.py

@@ -750,16 +750,16 @@ class VDigitToolbar(BaseToolbar):
         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:

+ 1 - 1
gui/wxpython/vdigit/wxdigit.py

@@ -1632,7 +1632,7 @@ class IVDigit:
     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)