Browse Source

wxGUI/vdigit: fix GetFeatureType() for PostGIS Topology

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58309 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
1b18055e2c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      gui/wxpython/vdigit/wxdigit.py

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

@@ -2005,5 +2005,9 @@ class IVDigit:
         @return feature type as string (point, linestring, polygon)
         @return None for native format
         """
-        return Vect_get_finfo_geometry_type(self.poMapInfo)
+        topoFormat = Vect_get_finfo_topology_info(self.poMapInfo, None, None, None)
+        if topoFormat == GV_TOPO_PSEUDO:
+            return Vect_get_finfo_geometry_type(self.poMapInfo)
+        
+        return ''