[postgis-users] Custom st_simplify function

Martin Davis mtnclimb at gmail.com
Sat Feb 15 10:56:59 PST 2020


Douglas-Peucker simplification doesn't split segments, it only creates
longer ones.  So not sure what behaviour you are seeing with it?

Can you post an example?

On Sat, Feb 15, 2020, 10:44 AM Alexander Gataric <gataric at usa.net> wrote:

> I mean if a line is one mile long and is simplified into five 1000 foot
> segments, I want the longest segment to be 500 feet instead of 1000 feet.
>
> Get BlueMail for Android <http://www.bluemail.me/r?b=15774>
> On Feb 15, 2020, at 11:47 AM, Martin Davis <mtnclimb at gmail.com> wrote:
>>
>> You mean you want to keep simplifying until there are no segments of
>> length greater than the maximum?  (Presumably excluding input segments
>> already longer?)
>>
>> On Fri, Feb 14, 2020, 1:57 PM Alexander Gataric <gataric at usa.net> wrote:
>>
>>> Is there a way to modify st_simplify to have a maximum segment length? I
>>> want to be able to limit it to 500 feet.
>>>
>>> Get BlueMail for Android <http://www.bluemail.me/r?b=15774>
>>>
>>> _______________________________________________
>>> postgis-users mailing list
>>> postgis-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/postgis-users
>>
>> ------------------------------
>>
>> postgis-users mailing list
>> postgis-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/postgis-users
>>
>> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20200215/f7e44668/attachment.html>


More information about the postgis-users mailing list