Changeset 66422


Ignore:
Timestamp:
Oct 6, 2015, 7:30:18 AM (9 years ago)
Author:
martinl
Message:

v.mkgrid: finish progress (G_percent) info, be less verbose about progress

Location:
grass/trunk/vector/v.mkgrid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/vector/v.mkgrid/main.c

    r65873 r66422  
    414414
    415415        /* Create a grid of label points at the centres of the grid cells */
    416         G_verbose_message(_("Creating centroids..."));
     416        G_message(_("Creating centroids..."));
    417417
    418418        /* Write out centroids and attributes */
     
    424424            attCount = 0;
    425425            for (i = 0; i < grid_info.num_rows; ++i) {
     426                G_percent(i, grid_info.num_rows, 2);
    426427                for (j = 0; j < grid_info.num_cols; ++j) {
    427428                    double x, y;
     
    465466                }
    466467            }
     468            G_percent(1, 1, 1);
    467469        }
    468470    }
  • grass/trunk/vector/v.mkgrid/write_grid.c

    r62895 r66422  
    6666
    6767    /* write out all the vector lengths (x vectors) of the entire grid  */
    68     G_verbose_message(_("Writing out vector rows..."));
     68    G_message(_("Writing out vector rows..."));
    6969    y = grid_info->south;
    7070    for (i = 0; i < num_v_rows; ++i) {
     
    102102        y += height;
    103103    }
    104 
     104    G_percent(1, 1, 1);
     105   
    105106    /* write out all the vector widths (y vectors) of the entire grid  */
    106     G_verbose_message(_("Writing out vector columns..."));
     107    G_message(_("Writing out vector columns..."));
    107108    x = grid_info->west;
    108109    for (i = 0; i < num_v_cols; ++i) {
     
    139140        x += width;
    140141    }
    141 
     142    G_percent(1, 1, 1);
     143   
    142144    /* new with Vlib */
    143145    Vect_destroy_line_struct(Points);
Note: See TracChangeset for help on using the changeset viewer.