more compact examples
This commit is contained in:
parent
aeb270925e
commit
fb3b7bc70f
@ -18,7 +18,7 @@ insert into figures (name, way) values ('fig3',ST_GeomFromText('LINESTRING(0 0,1
|
||||
insert into figures (name, way) values ('fig3-1',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)'));
|
||||
insert into figures (name, way) values ('fig5',ST_GeomFromText('LINESTRING(0 39,19 52,27 77,26 104,41 115,49 115,65 103,65 75,53 45,63 15,91 0)'));
|
||||
insert into figures (name, way) values ('fig6',ST_GeomFromText('LINESTRING(84 47,91 59,114 64,122 80,116 92,110 93,106 106,117 118,136 107,135 76,120 45,125 39,141 39,147 32)'));
|
||||
insert into figures (name, way) values ('fig6-rev',ST_Reverse(ST_Translate((select way from figures where name='fig6'), 80, 0)));
|
||||
insert into figures (name, way) values ('fig6-rev',ST_Reverse(ST_Translate((select way from figures where name='fig6'), 60, 0)));
|
||||
insert into figures (name, way) values ('inflection-1',ST_GeomFromText('LINESTRING(110 24,114 20,133 20,145 15,145 0,136 5,123 7,114 7,111 2)'));
|
||||
|
||||
drop table if exists debug;
|
||||
@ -96,7 +96,7 @@ begin
|
||||
perform assert_equals(
|
||||
'LINESTRING(84 47,91 59,114 64,120 45,125 39,141 39,147 32)',
|
||||
(select st_astext(
|
||||
st_translate(st_reverse(st_linemerge(st_union(way))), -80, 0)
|
||||
st_translate(st_reverse(st_linemerge(st_union(way))), -60, 0)
|
||||
) from (select unnest(vcrossings) way) a)
|
||||
);
|
||||
end $$ language plpgsql;
|
||||
|
Loading…
Reference in New Issue
Block a user