Prechádzať zdrojové kódy

Vlib: read proj number

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50485 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 rokov pred
rodič
commit
afb49d5f00
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      lib/vector/Vlib/header.c

+ 2 - 0
lib/vector/Vlib/header.c

@@ -164,6 +164,8 @@ int Vect__read_head(struct Map_info *Map)
 	    Vect_set_scale(Map, atoi(ptr));
 	    Vect_set_scale(Map, atoi(ptr));
 	else if (strncmp(buff, "OTHER INFO:", sizeof(char) * 11) == 0)
 	else if (strncmp(buff, "OTHER INFO:", sizeof(char) * 11) == 0)
 	    Vect_set_comment(Map, ptr);
 	    Vect_set_comment(Map, ptr);
+	else if (strncmp(buff, "PROJ:", sizeof(char) * 5) == 0)
+	    Vect_set_proj(Map, atoi(ptr));
 	else if (strncmp(buff, "ZONE:", sizeof(char) * 5) == 0 ||
 	else if (strncmp(buff, "ZONE:", sizeof(char) * 5) == 0 ||
 		 strncmp(buff, "UTM ZONE:", sizeof(char) * 9) == 0)
 		 strncmp(buff, "UTM ZONE:", sizeof(char) * 9) == 0)
 	    Vect_set_zone(Map, atoi(ptr));
 	    Vect_set_zone(Map, atoi(ptr));