[GRASS-SVN] r60550 - grass/trunk/vector/v.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 28 08:58:57 PDT 2014


Author: martinl
Date: 2014-05-28 08:58:57 -0700 (Wed, 28 May 2014)
New Revision: 60550

Modified:
   grass/trunk/vector/v.out.ogr/main.c
Log:
v.out.ogr: case insensitive check if layer exists

Modified: grass/trunk/vector/v.out.ogr/main.c
===================================================================
--- grass/trunk/vector/v.out.ogr/main.c	2014-05-28 15:55:59 UTC (rev 60549)
+++ grass/trunk/vector/v.out.ogr/main.c	2014-05-28 15:58:57 UTC (rev 60550)
@@ -486,7 +486,7 @@
     for (i = 0; i < OGR_DS_GetLayerCount(Ogr_ds); i++) {
 	Ogr_layer = OGR_DS_GetLayer(Ogr_ds, i);
 	Ogr_field = OGR_L_GetLayerDefn(Ogr_layer);
-	if (strcmp(OGR_FD_GetName(Ogr_field), options.layer->answer))
+	if (G_strcasecmp(OGR_FD_GetName(Ogr_field), options.layer->answer))
 	    continue;
 	
 	found = TRUE;



More information about the grass-commit mailing list