瀏覽代碼

vlib: Vect__open_old() - remove redundant Vect_set_proj/zone() calls

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50382 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
d6b1e86dca
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      lib/vector/Vlib/open.c

+ 0 - 6
lib/vector/Vlib/open.c

@@ -245,10 +245,6 @@ int Vect__open_old(struct Map_info *Map, const char *name, const char *mapset, c
     }
     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 @@ int Vect__open_old(struct Map_info *Map, const char *name, const char *mapset, c
     }
 
     /* 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());