source: subversion/applications/utils/export/osm2pgsql/expire-tiles.h @ 26708

Last change on this file since 26708 was 26020, checked in by frederik, 9 years ago

Branch of osm2pgsql that does not use intarray. Unsure if it works
with Postgres 8.3; does work with 8.4. Performance seems to be
identical to original; this version can be compiled with -DOSMID64
(or #define OSMID64 in osmtypes.h) to support OSM IDs larger than
a 4 byte integer. Using this option seems to increase database size
by something like 10%, and not significantly affect speed.

Not tested with Postgres 9.0; also, tire expiry and gazetteer functions
are untested (even though there's little reason to believe they should
be broken).

File size: 540 bytes
Line 
1#ifndef EXPIRE_TILES_H
2#define EXPIRE_TILES_H
3
4#include "output.h"
5
6void expire_tiles_init(const struct output_options *options);
7void expire_tiles_stop(void);
8int expire_tiles_from_bbox(double min_lon, double min_lat, double max_lon, double max_lat);
9void expire_tiles_from_nodes_line(struct osmNode * nodes, int count);
10void expire_tiles_from_nodes_poly(struct osmNode * nodes, int count, osmid_t osm_id);
11void expire_tiles_from_wkt(const char * wkt, osmid_t osm_id);
12void expire_tiles_from_db(PGconn * sql_conn, osmid_t osm_id);
13
14#endif
Note: See TracBrowser for help on using the repository browser.