Skip to content

Commit 7db5272

Browse files
committed
[GRASS] more debug for Windows
1 parent ab7828e commit 7db5272

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/providers/grass/qgsgrass.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,7 @@ QStringList GRASS_LIB_EXPORT QgsGrass::vectorLayers( const QString& gisdbase, co
10701070
QString l = fs + "_point";
10711071
list.append( l );
10721072
}
1073+
QgsDebugMsg( QString( "npoints = %1" ).arg( npoints ) );
10731074

10741075
/* Lines */
10751076
/* Lines without category appears in layer 0, but not boundaries */
@@ -1085,6 +1086,7 @@ QStringList GRASS_LIB_EXPORT QgsGrass::vectorLayers( const QString& gisdbase, co
10851086
QString l = fs + "_line";
10861087
list.append( l );
10871088
}
1089+
QgsDebugMsg( QString( "nlines = %1" ).arg( nlines ) );
10881090

10891091
/* Faces */
10901092
int nfaces = Vect_cidx_get_type_count( &map, field, GV_FACE );
@@ -1093,6 +1095,7 @@ QStringList GRASS_LIB_EXPORT QgsGrass::vectorLayers( const QString& gisdbase, co
10931095
QString l = fs + "_face";
10941096
list.append( l );
10951097
}
1098+
QgsDebugMsg( QString( "nfaces = %1" ).arg( nfaces ) );
10961099

10971100
/* Polygons */
10981101
int nareas = Vect_cidx_get_type_count( &map, field, GV_AREA );
@@ -1101,7 +1104,9 @@ QStringList GRASS_LIB_EXPORT QgsGrass::vectorLayers( const QString& gisdbase, co
11011104
QString l = fs + "_polygon";
11021105
list.append( l );
11031106
}
1107+
QgsDebugMsg( QString( "nareas = %1" ).arg( nareas ) );
11041108
}
1109+
QgsDebugMsg( "standard layers listed: " + list.join( "," ) );
11051110

11061111
// TODO: add option in GUI to set listTopoLayers
11071112
QSettings settings;
@@ -1125,7 +1130,9 @@ QStringList GRASS_LIB_EXPORT QgsGrass::vectorLayers( const QString& gisdbase, co
11251130
}
11261131
}
11271132

1133+
QgsDebugMsg( "close map" );
11281134
Vect_close( &map );
1135+
QgsDebugMsg( "map closed" );
11291136
}
11301137
G_CATCH( QgsGrass::Exception &e )
11311138
{

0 commit comments

Comments
 (0)