[GRASS-SVN] r50382 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 22 14:29:57 EST 2012


Author: martinl
Date: 2012-01-22 11:29:57 -0800 (Sun, 22 Jan 2012)
New Revision: 50382

Modified:
   grass/trunk/lib/vector/Vlib/open.c
Log:
vlib: Vect__open_old() - remove redundant Vect_set_proj/zone() calls


Modified: grass/trunk/lib/vector/Vlib/open.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open.c	2012-01-22 19:11:46 UTC (rev 50381)
+++ grass/trunk/lib/vector/Vlib/open.c	2012-01-22 19:29:57 UTC (rev 50382)
@@ -245,10 +245,6 @@
     }
     Map->format = format;
 
-    /* projection info */
-    Vect_set_proj(Map, G_projection());
-    Vect_set_zone(Map, G_zone());
-    
     /* read vector head (ignored for OGR mapset) */
     if (!ogr_mapset && Vect__read_head(Map) != 0) {
 	G_fatal_error(_("Unable to read header file of vector map <%s>"),
@@ -256,8 +252,6 @@
     }
 
     /* projection is not written to head but zone ??? */
-    
-    /* zone not set */
     if (Vect_get_zone(Map) == -1)
 	Vect_set_zone(Map, G_zone());
     Vect_set_proj(Map, G_projection());



More information about the grass-commit mailing list