default intersect_patience is 50
This commit is contained in:
parent
2403bcba12
commit
b174472473
@ -139,7 +139,7 @@ begin
|
|||||||
-- Šalčia-Visinčia crossing, and it "exaggerates" to the
|
-- Šalčia-Visinčia crossing, and it "exaggerates" to the
|
||||||
-- other river.
|
-- other river.
|
||||||
foreach i in array array[75, 220] loop
|
foreach i in array array[75, 220] loop
|
||||||
geom3 = st_simplifywm((select way from wm_visuals where name='salvis-grpk10'), i, 50, 'salvis-wm' || i);
|
geom3 = st_simplifywm((select way from wm_visuals where name='salvis-grpk10'), i, null, 'salvis-wm' || i);
|
||||||
insert into wm_visuals(name, way) values
|
insert into wm_visuals(name, way) values
|
||||||
('salvis-wm' || i, geom3);
|
('salvis-wm' || i, geom3);
|
||||||
end loop;
|
end loop;
|
||||||
|
4
wm.sql
4
wm.sql
@ -765,7 +765,7 @@ drop function if exists ST_SimplifyWM;
|
|||||||
create function ST_SimplifyWM(
|
create function ST_SimplifyWM(
|
||||||
geom geometry,
|
geom geometry,
|
||||||
dhalfcircle float,
|
dhalfcircle float,
|
||||||
intersect_patience integer default 10,
|
intersect_patience integer default 50,
|
||||||
dbgname text default null
|
dbgname text default null
|
||||||
) returns geometry as $$
|
) returns geometry as $$
|
||||||
declare
|
declare
|
||||||
@ -780,7 +780,7 @@ declare
|
|||||||
l_type text;
|
l_type text;
|
||||||
begin
|
begin
|
||||||
if intersect_patience is null then
|
if intersect_patience is null then
|
||||||
intersect_patience = 10;
|
intersect_patience = 50;
|
||||||
end if;
|
end if;
|
||||||
l_type = st_geometrytype(geom);
|
l_type = st_geometrytype(geom);
|
||||||
if l_type = 'ST_LineString' then
|
if l_type = 'ST_LineString' then
|
||||||
|
Loading…
Reference in New Issue
Block a user