fix simple geometries
This commit is contained in:
parent
37a3259965
commit
6e502de74b
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
drop table if exists agg_rivers_wm;
|
drop table if exists agg_rivers_wm;
|
||||||
create table agg_rivers_wm (name text, way geometry);
|
create table agg_rivers_wm (name text, way geometry);
|
||||||
insert into agg_rivers_wm (name, way) select name, ST_SimplifyWM_DEBUG(way) from agg_rivers where name='Visinčia';
|
insert into agg_rivers_wm (name, way) select name, ST_SimplifyWM_DEBUG(way) from agg_rivers;
|
||||||
|
@ -298,7 +298,7 @@ begin
|
|||||||
end loop;
|
end loop;
|
||||||
|
|
||||||
if l_type = 'ST_LineString' then
|
if l_type = 'ST_LineString' then
|
||||||
return bends[1];
|
return st_linemerge(st_union(bends));
|
||||||
elseif l_type = 'ST_MultiLineString' then
|
elseif l_type = 'ST_MultiLineString' then
|
||||||
return st_union(bends);
|
return st_union(bends);
|
||||||
end if;
|
end if;
|
||||||
@ -351,7 +351,7 @@ begin
|
|||||||
end loop;
|
end loop;
|
||||||
|
|
||||||
if l_type = 'ST_LineString' then
|
if l_type = 'ST_LineString' then
|
||||||
return bends[1];
|
return st_linemerge(st_union(bends));
|
||||||
elseif l_type = 'ST_MultiLineString' then
|
elseif l_type = 'ST_MultiLineString' then
|
||||||
return st_union(bends);
|
return st_union(bends);
|
||||||
end if;
|
end if;
|
||||||
|
Loading…
Reference in New Issue
Block a user