1 create table tmp_nodes (
5 lat REAL CHECK ( lat <= 90 AND lat >= -90 ),
6 lon REAL CHECK ( lon <= 180 AND lon >= -180 )
9 create index tmp_nodes_id ON tmp_nodes ( id );
11 create table tmp_node_tags (
12 node_id INTEGER REFERENCES tmp_nodes ( id ),
17 create table tmp_ways (
23 create index tmp_ways_id ON tmp_ways ( id );
25 create table tmp_way_tags (
26 way_id INTEGER REFERENCES tmp_ways ( id ),
31 create table tmp_way_nodes (
32 way_id INTEGER REFERENCES tmp_ways ( id ),
34 node_id INTEGER REFERENCES tmp_nodes ( id )
37 create table tmp_relations (
43 create index tmp_relations_id ON tmp_relations ( id );
45 create table tmp_relation_tags (
46 relation_id INTEGER REFERENCES tmp_relations ( id ),
51 create table tmp_relation_members (
52 relation_id INTEGER REFERENCES tmp_relations ( id ),
53 type TEXT CHECK ( type IN ("node", "way", "relation")),