rename files
This commit is contained in:
parent
b67260a551
commit
5c0f0d5c47
@ -1,5 +0,0 @@
|
|||||||
drop table if exists figures;
|
|
||||||
create table figures (name text, way geometry);
|
|
||||||
|
|
||||||
insert into figures (name, way) values ('fig3', ST_GeomFromText('LINESTRING(0 0, 12 0, 13 4, 20 2, 20 0, 32 0, 33 10, 38 16, 43 15, 44 10, 44 0, 60 0)'));
|
|
||||||
insert into figures (name, way) values ('Žeimena', (select st_linemerge(st_union(p.way)) from planet_osm_line p where p.name = 'Žeimena'));
|
|
10
tests.sql
Normal file
10
tests.sql
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
\i wm.sql
|
||||||
|
|
||||||
|
drop table if exists figures;
|
||||||
|
create table figures (name text, way geometry);
|
||||||
|
insert into figures (name, way) values ('fig3', ST_GeomFromText('LINESTRING(0 0, 12 0, 13 4, 20 2, 20 0, 32 0, 33 10, 38 16, 43 15, 44 10, 44 0, 60 0)'));
|
||||||
|
|
||||||
|
drop table if exists bends;
|
||||||
|
create table bends as (select * from detect_bends((select way from figures where name='fig3')));
|
||||||
|
|
||||||
|
--insert into figures (name, way) values ('Žeimena', (select st_linemerge(st_union(p.way)) from planet_osm_line p where p.name = 'Žeimena'))
|
@ -38,8 +38,3 @@ begin
|
|||||||
end loop;
|
end loop;
|
||||||
end
|
end
|
||||||
$$ language plpgsql;
|
$$ language plpgsql;
|
||||||
|
|
||||||
drop table if exists bends;
|
|
||||||
|
|
||||||
--create table bends as (select * from detect_bends((select way from figures where name='fig3')));
|
|
||||||
create table bends as (select * from detect_bends((select way from figures where name='Žeimena')));
|
|
Loading…
Reference in New Issue
Block a user