Esempio n. 1
0
bool QgsGrassVectorMap::open()
{
  QgsDebugMsg( toString() );
  if ( mOpen )
  {
    QgsDebugMsg( "already open" );
    return true;
  }
  lockOpenClose();
  bool result = openMap();
  mOpen = true;
  unlockOpenClose();
  return result;
}
Esempio n. 2
0
void QgsGrassVectorMap::close()
{
  QgsDebugMsg( toString() );
  if ( !mOpen )
  {
    QgsDebugMsg( "is not open" );
    return;
  }
  lockOpenClose();
  closeAllIterators(); // blocking
  closeMap();
  mOpen = false;
  unlockOpenClose();
}