globals.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /* cursor */
  18. typedef struct
  19. {
  20. dbToken token;
  21. OGRLayerH hLayer; /* current OGR layer */
  22. OGRFeatureH hFeature; /* current feature */
  23. int type; /* type of cursor: SELECT, UPDATE, INSERT */
  24. int *cols; /* 1 type is known, 0 type is unknown */
  25. int ncols; /* num columns (without fid column) */
  26. } cursor;
  27. /* column info (see execute.c) */
  28. typedef struct
  29. {
  30. char *name;
  31. char *value;
  32. int index;
  33. int qindex; /* query column */
  34. OGRFieldType type;
  35. } column_info;
  36. extern OGRDataSourceH hDs;
  37. extern dbString *errMsg;