Browse Source

ogsf: show vector points in current region only

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47778 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 years ago
parent
commit
0a9004a9d3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/ogsf/Gp3.c

+ 2 - 0
lib/ogsf/Gp3.c

@@ -73,6 +73,8 @@ geopoint *Gp_load_sites(const char *name, int *nsites, int *has_z)
     }
 
     G_get_set_window(&wind);
+    Vect_set_constraint_region(&map, wind.north, wind.south, wind.east,
+			       wind.west, PORT_DOUBLE_MAX, -PORT_DOUBLE_MAX);
 
     /* get ndim */
     *has_z = 0;