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

« back to all changes in this revision

Viewing changes to vector/v.edit/main.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:
1
 
 
2
1
/****************************************************************
3
2
 *
4
3
 * MODULE:     v.edit
18
17
 * TODO:       3D support
19
18
 ****************************************************************/
20
19
 
 
20
#include <grass/dbmi.h>
21
21
#include "global.h"
22
22
 
23
23
int main(int argc, char *argv[])
94
94
                              params.map->answer);
95
95
        }
96
96
 
 
97
        if (! db_get_default_driver_name() ) {
 
98
            G_message(_("Creating new DB connection based on default mapset settings..."));
 
99
            db_set_default_connection();
 
100
        }
 
101
 
97
102
        /* 3D vector maps? */
98
103
        ret = Vect_open_new(&Map, params.map->answer, WITHOUT_Z);
99
104
        if (ret == -1) {