Browse Source

v.convert: update for https://trac.osgeo.org/grass/changeset/56095

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56096 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 years ago
parent
commit
4abd1ce4c8
1 changed files with 5 additions and 2 deletions
  1. 5 2
      vector/v.convert/read.c

+ 5 - 2
vector/v.convert/read.c

@@ -16,6 +16,7 @@ int read_dig(FILE * Digin, struct Map_info *Mapout,
 	     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 @@ int read_dig(FILE * Digin, struct Map_info *Mapout,
     /* 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 @@ int read_dig(FILE * Digin, struct Map_info *Mapout,
 	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 ? */