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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 25 13:23:09 PST 2013


Author: martinl
Date: 2013-11-25 13:23:08 -0800 (Mon, 25 Nov 2013)
New Revision: 58309

Modified:
   grass/trunk/gui/wxpython/vdigit/wxdigit.py
Log:
wxGUI/vdigit: fix GetFeatureType() for PostGIS Topology


Modified: grass/trunk/gui/wxpython/vdigit/wxdigit.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdigit.py	2013-11-25 20:23:59 UTC (rev 58308)
+++ grass/trunk/gui/wxpython/vdigit/wxdigit.py	2013-11-25 21:23:08 UTC (rev 58309)
@@ -2005,5 +2005,9 @@
         @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 ''
+        



More information about the grass-commit mailing list