--- /dev/null
+CREATE INDEX node_ll_idx on nodes (lat,lon);
+CREATE INDEX way_seg_node_idx on way_seg (node);
+CREATE UNIQUE INDEX poi_lat_lon_idx on poi (lat, lon, cat_id);
+CREATE INDEX poi_priority on poi (priority);
+CREATE INDEX name_idx on way_names (name);
l int not null default 0
);
-create index node_ll_idx on nodes (lat,lon);
-
create table way (
wid int primary key,
type int not null,
node int not null
);
-create index way_seg_node_idx on way_seg (node);
-
create table area (
waid int not null,
num int not null,
isin int
);
-CREATE TABLE poi (
+create table poi (
poi_id integer PRIMARY KEY,
lat real not null,
lon real not null,
osm_id integer default 0,
priority int default 2
);
-
-CREATE UNIQUE INDEX poi_lat_lon_idx on poi (lat, lon, cat_id);
-CREATE INDEX poi_priority on poi (priority);
-CREATE INDEX name_idx on way_names (name);