소스 검색

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 ''