main.c 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*****************************************************************************
  2. *
  3. * MODULE: OGR driver
  4. *
  5. * AUTHOR(S): Radim Blazek
  6. * Some updates by Martin Landa <landa.martin gmail.com>
  7. *
  8. * PURPOSE: DB driver for OGR sources
  9. *
  10. * COPYRIGHT: (C) 2004-2009 by the GRASS Development Team
  11. *
  12. * This program is free software under the GNU General Public
  13. * License (>=v2). Read the file COPYING that comes with GRASS
  14. * for details.
  15. *
  16. *****************************************************************************/
  17. #include <stdlib.h>
  18. #include <grass/dbmi.h>
  19. #include <ogr_api.h>
  20. #include "globals.h"
  21. #include "dbdriver.h"
  22. OGRDataSourceH hDs;
  23. dbString *errMsg = NULL; /* error message */
  24. int main(int argc, char *argv[])
  25. {
  26. init_dbdriver();
  27. exit(db_driver(argc, argv));
  28. }