[GRASS-SVN] r63609 - grass/trunk/vector/v.external

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 19 02:28:48 PST 2014


Author: martinl
Date: 2014-12-19 02:28:48 -0800 (Fri, 19 Dec 2014)
New Revision: 63609

Modified:
   grass/trunk/vector/v.external/list.c
Log:
v.external: fix feature type for -t


Modified: grass/trunk/vector/v.external/list.c
===================================================================
--- grass/trunk/vector/v.external/list.c	2014-12-19 10:23:48 UTC (rev 63608)
+++ grass/trunk/vector/v.external/list.c	2014-12-19 10:28:48 UTC (rev 63609)
@@ -278,7 +278,6 @@
     for (i = 0; i < nlayers; i++) {
 	Ogr_layer = OGR_DS_GetLayer(Ogr_ds, i);
 	Ogr_featuredefn = OGR_L_GetLayerDefn(Ogr_layer);
-	Ogr_geom_type = OGR_FD_GetGeomType(Ogr_featuredefn);
 	layer_name = (char *) OGR_FD_GetName(Ogr_featuredefn);
 
 	if (fd) {
@@ -312,7 +311,8 @@
                         G_warning(_("Invalid geometry column %d"), igeom);
                         continue;
                     }
-                    
+
+                    Ogr_geom_type = OGR_GFld_GetType(Ogr_geomdefn);
                     fprintf(fd, "%s,%s,%d,%s\n", layer_name,
                             feature_type(OGRGeometryTypeToName(Ogr_geom_type)),
                             proj_same, OGR_GFld_GetNameRef(Ogr_geomdefn));



More information about the grass-commit mailing list