From 88214900796627d8b6fc306d8750b4d796d0d58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 13 Feb 2021 17:34:44 +0200 Subject: [PATCH] =?UTF-8?q?=C5=BDeimena?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IV/bend.sql | 4 +++- IV/figures.sql | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/IV/bend.sql b/IV/bend.sql index a656866..f36fc54 100644 --- a/IV/bend.sql +++ b/IV/bend.sql @@ -40,4 +40,6 @@ end $$ 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='fig3'))); +create table bends as (select * from detect_bends((select way from figures where name='Žeimena'))); diff --git a/IV/figures.sql b/IV/figures.sql index 6b1b50f..eafcf03 100644 --- a/IV/figures.sql +++ b/IV/figures.sql @@ -2,3 +2,4 @@ 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'));