~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to raster/r.statistics/o_sum.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    tempfile1 = G_tempfile();
28
28
    tempfile2 = G_tempfile();
29
29
 
30
 
    sprintf(command, "%s -cn input=\"%s,%s\" fs=space > \"%s\"", STATS, basemap,
 
30
    sprintf(command, "%s -cn input=\"%s,%s\" fs=space output=\"%s\"", STATS, basemap,
31
31
            covermap, tempfile1);
32
32
 
33
 
    if (stat = system(command)) {
 
33
    if (stat = G_system(command)) {
34
34
        unlink(tempfile1);
35
35
        G_fatal_error(_("%s: running %s command"), me, STATS);
36
36
    }
65
65
    sum_out(fd2, basecat, sum1);
66
66
    fclose(fd1);
67
67
    fclose(fd2);
68
 
    sprintf(command, "%s input=\"%s\" output=\"%s\" < \"%s\"",
 
68
    sprintf(command, "%s input=\"%s\" output=\"%s\" rules=\"%s\"",
69
69
            RECLASS, basemap, outputmap, tempfile2);
70
 
    stat = system(command);
 
70
    stat = G_system(command);
71
71
    unlink(tempfile1);
72
72
    unlink(tempfile2);
73
73