浏览代码

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 年之前
父节点
当前提交
1b18055e2c
共有 1 个文件被更改,包括 5 次插入1 次删除
  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 ''