Browse Source

GV_FORMAT_OGR*

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39549 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
d26d77d2dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vector/v.info/print.c

+ 2 - 2
vector/v.info/print.c

@@ -173,7 +173,7 @@ void print_info(const struct Map_info *Map)
     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 @@ void print_info(const struct Map_info *Map)
     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));
     }