Explorar el Código

v.in.region: set category also for boundaries

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58360 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 11 años
padre
commit
5f3ada2794
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      vector/v.in.region/main.c

+ 2 - 1
vector/v.in.region/main.c

@@ -115,13 +115,14 @@ int main(int argc, char **argv)
     Vect_append_point(Points, window.west, window.south, 0.0);
 
     if (type == GV_AREA) {
+        Vect_cat_set(Cats, 1, cat);
+
 	Vect_write_line(&Out, GV_BOUNDARY, Points, Cats);
 
 	Vect_reset_line(Points);
 	Vect_append_point(Points, (window.west + window.east) / 2,
 			  (window.south + window.north) / 2, 0.0);
 
-	Vect_cat_set(Cats, 1, cat);
 	Vect_write_line(&Out, GV_CENTROID, Points, Cats);
     }
     else {			/* GV_LINE */