]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/nominatim.h
df0b1f6b6f1c0a2ad17bb899f23cb8f0bb114265
[nominatim.git] / nominatim / nominatim.h
1 #ifndef NOMINATIM_H
2 #define NOMINATIM_H
3
4 #define MAX(x,y) (x > y?x:y)
5 #define MIN(x,y) (x < y?x:y)
6
7 struct output_options {
8   const char *conninfo;  /* Connection info string */
9   const char *prefix;    /* prefix for table names */
10   int scale;       /* scale for converting coordinates to fixed point */
11   int projection;  /* SRS of projection */
12   int append;      /* Append to existing data */
13   int slim;        /* In slim mode */
14   int cache;       /* Memory usable for cache in MB */
15   struct middle_t *mid;  /* Mid storage to use */
16   const char *tblsindex;     /* Pg Tablespace to store indexes */
17   const char *style;     /* style file to use */
18   int expire_tiles_zoom;        /* Zoom level for tile expiry list */
19   int expire_tiles_zoom_min;    /* Minimum zoom level for tile expiry list */
20   const char *expire_tiles_filename;    /* File name to output expired tiles list to */
21   int enable_hstore; /* add an additional hstore column with objects key/value pairs */
22   int enable_multi; /* Output multi-geometries intead of several simple geometries */
23   char** hstore_columns; /* list of columns that should be written into their own hstore column */
24   int n_hstore_columns; /* number of hstore columns */
25 };
26
27 void exit_nicely(void);
28 void short_usage(char *arg0);
29
30 #endif