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
|
||||
-- other river.
|
||||
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
|
||||
('salvis-wm' || i, geom3);
|
||||
end loop;
|
||||
|
|
4
wm.sql
4
wm.sql
|
@ -765,7 +765,7 @@ drop function if exists ST_SimplifyWM;
|
|||
create function ST_SimplifyWM(
|
||||
geom geometry,
|
||||
dhalfcircle float,
|
||||
intersect_patience integer default 10,
|
||||
intersect_patience integer default 50,
|
||||
dbgname text default null
|
||||
) returns geometry as $$
|
||||
declare
|
||||
|
@ -780,7 +780,7 @@ declare
|
|||
l_type text;
|
||||
begin
|
||||
if intersect_patience is null then
|
||||
intersect_patience = 10;
|
||||
intersect_patience = 50;
|
||||
end if;
|
||||
l_type = st_geometrytype(geom);
|
||||
if l_type = 'ST_LineString' then
|
||||
|
|
Loading…
Reference in New Issue