[postgis-devel] Collapsing behavior for simplify

=?UTF-8?Q?Nicklas_Av=E9n?= nicklas.aven at jordogskog.no
Tue Apr 7 05:07:33 PDT 2015


Ok, but when it comes to SimplifyVW I guess we don't have to care about the default to Douglas-Pecker version.


For reference ST_SimplifyVW outputs 



POLYGON((0.5 1.5,100 200,0 200,0.5 1.5));
from :
SELECTST_AsText(ST_SimplifyV('POLYGON((0.5 1.5,1.5 1.5,2.5 2.5,4.5 4,100 200,0 200,-0.5 5.5,0 3.5,0.5 1.5))'::geometry, 1000));


Javier, do you get the same from your version (with very high last parameter)?


strk
Is it implemented with most significant or evenly distributed 4 points?


/Nicklas

2015-04-07 skrev Javier Santana :

>
I did some tests on that: https://github.com/javisantana/postgis/commit/8cc94f292fadf9295bc928f4a67e83e919408e01>

>>

>>

>>
On Tue, Apr 7, 2015 at 10:58 AM, Sandro Santilli <strk at keybit.net> wrote:
>On Sat, Apr 04, 2015 at 11:11:29PM +0200, Nicklas Avén wrote:
>> Then I am on the right track with SimplifyVW. But I use the most significant points instead of evenly distributed 4 points.
>> But I don't know if that is easy to implement with possible with Douglas-Pecker.
>
>I think it's already implemented, just needs to be exposed once we
>have an acceptable parameter to specify user wants that behavior,
>as people complained when the default was changed.
>
>--strk;
>>
>
_______________________________________________
>postgis-devel mailing list
>postgis-devel at lists.osgeo.org
>lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150407/6d594ef4/attachment.html>


More information about the postgis-devel mailing list