source: subversion/applications/utils/export/osm2pgsql/output.h @ 3210

Last change on this file since 3210 was 2827, checked in by jonb, 13 years ago

osm2pgsql - make experimental version current, move previous implementation to legacy

File size: 587 bytes
Line 
1/* Common output layer interface */
2
3/* Each output layer must provide methods for
4 * storing:
5 * - Nodes (Points of interest etc)
6 * - Way geometries
7 * Associated tags: name, type etc.
8*/
9
10#ifndef OUTPUT_H
11#define OUTPUT_H
12
13#include "keyvals.h"
14#include "middle.h"
15
16struct output_t {
17    int (*start)(int dropcreate);
18    void (*stop)(void);
19    void (*cleanup)(void);
20    void (*process)(struct middle_t *mid);
21    int (*node)(int id, struct keyval *tags, double node_lat, double node_lon);
22    int (*way)(int id, struct keyval *tags, struct osmSegLL *segll, int count);
23};
24
25#endif
Note: See TracBrowser for help on using the repository browser.