[GRASS-SVN] r39549 - grass/trunk/vector/v.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 17 12:34:53 EDT 2009
Author: martinl
Date: 2009-10-17 12:34:52 -0400 (Sat, 17 Oct 2009)
New Revision: 39549
Modified:
grass/trunk/vector/v.info/print.c
Log:
GV_FORMAT_OGR*
Modified: grass/trunk/vector/v.info/print.c
===================================================================
--- grass/trunk/vector/v.info/print.c 2009-10-17 16:31:45 UTC (rev 39548)
+++ grass/trunk/vector/v.info/print.c 2009-10-17 16:34:52 UTC (rev 39549)
@@ -173,7 +173,7 @@
struct bound_box box;
divider('+');
- if (Vect_maptype(Map) == GV_FORMAT_OGR) {
+ if (Vect_maptype(Map) & (GV_FORMAT_OGR | GV_FORMAT_OGR_DIRECT)) {
/* for OGR format print also datasource and layer */
sprintf(line, "%-17s%s", _("OGR layer:"),
Vect_get_ogr_layer_name(Map));
@@ -202,7 +202,7 @@
sprintf(line, "%-17s1:%d", _("Map scale:"),
Vect_get_scale(Map));
printline(line);
- if (Vect_maptype(Map) == GV_FORMAT_OGR) {
+ if (Vect_maptype(Map) & (GV_FORMAT_OGR | GV_FORMAT_OGR_DIRECT)) {
sprintf(line, "%-17s%s (%s)", _("Map format:"),
Vect_maptype_info(Map), Vect_get_ogr_format_info(Map));
}
More information about the grass-commit
mailing list