Commit 054ac575 authored by Nicklas Avén's avatar Nicklas Avén

Harmonize ST_SimplifyVW with ST_Simplify behavior when feeded with 0 tolerance

git-svn-id: http://svn.osgeo.org/postgis/trunk@13618 b70326c6-7e19-0410-871a-916f4a2858ee
parent 75e4f978
......@@ -408,7 +408,7 @@ static POINTARRAY * ptarray_set_effective_area(POINTARRAY *inpts,int avoid_colla
/*Only return points with an effective area above the threashold*/
for (p=0;p<ea->inpts->npoints;p++)
{
if(ea->res_arealist[p]>=trshld)
if(ea->res_arealist[p]>trshld)
{
pt=getPoint4d(ea->inpts, p);
pt.m=ea->res_arealist[p];
......@@ -421,7 +421,7 @@ static POINTARRAY * ptarray_set_effective_area(POINTARRAY *inpts,int avoid_colla
/*Only return points with an effective area above the threashold*/
for (p=0;p<ea->inpts->npoints;p++)
{
if(ea->res_arealist[p]>=trshld)
if(ea->res_arealist[p]>trshld)
{
pt=getPoint4d(ea->inpts, p);
ptarray_append_point(opts, &pt, LW_TRUE);
......
......@@ -2931,7 +2931,7 @@ CREATE OR REPLACE FUNCTION ST_SimplifyVW(geometry, float8)
LANGUAGE 'c' IMMUTABLE STRICT;
-- Availability: 2.2.0
CREATE OR REPLACE FUNCTION ST_SetEffectiveArea(geometry, float8 default 0, integer default 1)
CREATE OR REPLACE FUNCTION ST_SetEffectiveArea(geometry, float8 default -1, integer default 1)
RETURNS geometry
AS 'MODULE_PATHNAME', 'LWGEOM_SetEffectiveArea'
LANGUAGE 'c' IMMUTABLE STRICT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment