[GRASS-SVN] r56096 - grass/trunk/vector/v.convert

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 3 02:28:46 PDT 2013


Author: martinl
Date: 2013-05-03 02:28:45 -0700 (Fri, 03 May 2013)
New Revision: 56096

Modified:
   grass/trunk/vector/v.convert/read.c
Log:
v.convert: update for r56095


Modified: grass/trunk/vector/v.convert/read.c
===================================================================
--- grass/trunk/vector/v.convert/read.c	2013-05-03 09:28:13 UTC (rev 56095)
+++ grass/trunk/vector/v.convert/read.c	2013-05-03 09:28:45 UTC (rev 56096)
@@ -16,6 +16,7 @@
 	     struct Line **plines, int endian, int att)
 {
     char buf[100];
+    struct Plus_head *In_plus;
     struct dig_head In_head;
     int lalloc, line = 0, type, portable = 1;
     int npoints = 0, nlines = 0, nbounds = 0;
@@ -35,6 +36,8 @@
     /* set conversion matrices */
     dig_init_portable(&(In_head.port), endian);
 
+    In_plus = &(Mapout->plus);
+    
     /* Version 3 dig files were not portable and some version 4 
      * files may be also non portable */
 
@@ -77,12 +80,12 @@
 	return -1;
 
     if (buf[0] != '%' || buf[1] != '%') {	/* Version3.0 */
-	In_head.Version_Major = 3;
+	In_plus->version.coor.major = 3;
 	portable = 0;		/* input vector is not portable format */
 	G_message(_("Input file is version 3."));
     }
     else {
-	In_head.Version_Major = 4;
+	In_plus->version.coor.major = 4;
 	G_message(_("Input file is version 4."));
 	/* determine if in portable format or not */
 	if (buf[6] == 1 && (~buf[6] & 0xff) == (buf[7] & 0xff)) {	/* portable ? */



More information about the grass-commit mailing list