parameters: (self, schema=None)
return_statement: return items
docstring: Returns a list of vector table information
docstring_summary: Returns a list of vector table information
docstring_tokens: Returns a list of vector table information
function: def getVectorTables(self, schema=None):
          """Returns a list of vector table information
          """
  
          items = []
          for table in self.core_connection.tables(schema, QgsAbstractDatabaseProviderConnection.Vector | QgsAbstractDatabaseProviderConnection.Aspatial):
              if not (table.flags() & QgsAbstractDatabaseProviderConnection.Aspatial):
                  geom_type = table.geometryColumnTypes()[0]
                  # Use integer PG code for SRID
                  srid = geom_type.crs.postgisSrid()
                  geomtype_flatten = QgsWkbTypes.flatType(geom_type.wkbType)
                  geomname = 'GEOMETRY'
                  if geomtype_flatten == QgsWkbTypes.Point:
                      geomname = 'POINT'
                  elif geomtype_flatten == QgsWkbTypes.LineString:
                      geomname = 'LINESTRING'
                  elif geomtype_flatten == QgsWkbTypes.Polygon:
                      geomname = 'POLYGON'
                  elif geomtype_flatten == QgsWkbTypes.MultiPoint:
                      geomname = 'MULTIPOINT'
                  elif geomtype_flatten == QgsWkbTypes.MultiLineString:
                      geomname = 'MULTILINESTRING'
                  elif geomtype_flatten == QgsWkbTypes.MultiPolygon:
                      geomname = 'MULTIPOLYGON'
                  elif geomtype_flatten == QgsWkbTypes.GeometryCollection:
                      geomname = 'GEOMETRYCOLLECTION'
                  elif geomtype_flatten == QgsWkbTypes.CircularString:
                      geomname = 'CIRCULARSTRING'
                  elif geomtype_flatten == QgsWkbTypes.CompoundCurve:
                      geomname = 'COMPOUNDCURVE'
                  elif geomtype_flatten == QgsWkbTypes.CurvePolygon:
                      geomname = 'CURVEPOLYGON'
                  elif geomtype_flatten == QgsWkbTypes.MultiCurve:
                      geomname = 'MULTICURVE'
                  elif geomtype_flatten == QgsWkbTypes.MultiSurface:
                      geomname = 'MULTISURFACE'
                  geomdim = 'XY'
                  if QgsWkbTypes.hasZ(geom_type.wkbType):
                      geomdim += 'Z'
                  if QgsWkbTypes.hasM(geom_type.wkbType):
                      geomdim += 'M'
                  item = [
                      Table.VectorType,
                      table.tableName(),
                      bool(table.flags() & QgsAbstractDatabaseProviderConnection.View),  # is_view
                      table.tableName(),
                      table.geometryColumn(),
                      geomname,
                      geomdim,
                      srid
                  ]
                  self.mapSridToName[srid] = geom_type.crs.description()
              else:
                  item = [
                      Table.TableType,
                      table.tableName(),
                      bool(table.flags() & QgsAbstractDatabaseProviderConnection.View),
                  ]
  
              items.append(item)
  
          return items
function_tokens: def getVectorTables ( self , schema = None ) : items = [ ] for table in self . core_connection . tables ( schema , QgsAbstractDatabaseProviderConnection . Vector | QgsAbstractDatabaseProviderConnection . Aspatial ) : if not ( table . flags ( ) & QgsAbstractDatabaseProviderConnection . Aspatial ) : geom_type = table . geometryColumnTypes ( ) [ 0 ] # Use integer PG code for SRID srid = geom_type . crs . postgisSrid ( ) geomtype_flatten = QgsWkbTypes . flatType ( geom_type . wkbType ) geomname = 'GEOMETRY' if geomtype_flatten == QgsWkbTypes . Point : geomname = 'POINT' elif geomtype_flatten == QgsWkbTypes . LineString : geomname = 'LINESTRING' elif geomtype_flatten == QgsWkbTypes . Polygon : geomname = 'POLYGON' elif geomtype_flatten == QgsWkbTypes . MultiPoint : geomname = 'MULTIPOINT' elif geomtype_flatten == QgsWkbTypes . MultiLineString : geomname = 'MULTILINESTRING' elif geomtype_flatten == QgsWkbTypes . MultiPolygon : geomname = 'MULTIPOLYGON' elif geomtype_flatten == QgsWkbTypes . GeometryCollection : geomname = 'GEOMETRYCOLLECTION' elif geomtype_flatten == QgsWkbTypes . CircularString : geomname = 'CIRCULARSTRING' elif geomtype_flatten == QgsWkbTypes . CompoundCurve : geomname = 'COMPOUNDCURVE' elif geomtype_flatten == QgsWkbTypes . CurvePolygon : geomname = 'CURVEPOLYGON' elif geomtype_flatten == QgsWkbTypes . MultiCurve : geomname = 'MULTICURVE' elif geomtype_flatten == QgsWkbTypes . MultiSurface : geomname = 'MULTISURFACE' geomdim = 'XY' if QgsWkbTypes . hasZ ( geom_type . wkbType ) : geomdim += 'Z' if QgsWkbTypes . hasM ( geom_type . wkbType ) : geomdim += 'M' item = [ Table . VectorType , table . tableName ( ) , bool ( table . flags ( ) & QgsAbstractDatabaseProviderConnection . View ) , # is_view table . tableName ( ) , table . geometryColumn ( ) , geomname , geomdim , srid ] self . mapSridToName [ srid ] = geom_type . crs . description ( ) else : item = [ Table . TableType , table . tableName ( ) , bool ( table . flags ( ) & QgsAbstractDatabaseProviderConnection . View ) , ] items . append ( item ) return items