2
#include <grass/vector.h>
3
#include <grass/dbmi.h>
6
#include "cpl_string.h"
10
#define SQL_BUFFER_SIZE 2000
14
struct Option *input, *dsn, *layer, *type, *format,
15
*field, *dsco, *lco, *otype;
19
struct Flag *cat, *esristyle, *update, *nocat, *new, *append, *force2d, *multi;
23
void parse_args(int, char **,
24
struct Options*, struct Flags *);
27
int mk_att(int, struct field_info *, dbDriver *,
28
int, int *, const char **, int, int,
32
char *OGR_list_write_drivers();
35
void create_ogr_layer(const char *, const char *, const char *,
36
unsigned int, char **, char **);
37
OGRwkbGeometryType get_multi_wkbtype(OGRwkbGeometryType);
38
OGRwkbGeometryType get_wkbtype(int, int);
41
int export_lines(struct Map_info *, int, int, int, int, int,
42
OGRFeatureDefnH, OGRLayerH,
43
struct field_info *, dbDriver *, int, int *,
44
const char **, int, int,
48
int export_areas(struct Map_info *, int, int, int,
49
OGRFeatureDefnH, OGRLayerH,
50
struct field_info *, dbDriver *, int, int *,
51
const char **, int, int,