Thank's Cory.

This made my about 60 % of the cpu time.
But if you have a more aggresive solution, I'm interested !

In fact, I make a way in the streets, get a MultiLineString and have to
find the shops around my way, let's say about 1 kilometers right and 1
kilometer left so I can really be more aggressive with the calculated way
and even degrade it so I 'need' to erase every small 'right/left'.

Jérémy, IngenCys

> Jérémy DE ROYER wrote:
>
>>Hi all,
>>
>>Is there a way to simplify a MultiLineString (let's say from 500
>>linestring to 50 linestring) ?
>>
>>Indeed, I'm creating a Polygon based an a MultiLineString with the
>>function myPolygon = myMultiLineString.buffer(width, 100) and the
>>"problem" is that my multilinestring (a path) is complicated so I'm
>>loosing cpu time for nothing...
>>
>>Any ideas ?
>>
>>Jérémy DE ROYER
>>
>>
> Hi Jérémy,
>
> If you're looking to eliminate redundant points in a geometry, the
> Douglas Peucker Algorithm should clean things up within the tolerance
> you specify.
>
> http://www.jump-project.org/docs/jts/1.6/api/com/vividsolutions/jts/simplify/DouglasPeuckerSimplifier.html
>
> Is this what you had in mind?
>
> Cheers,
> Cory.
>
> ----
> Cory Horner
> Refractions Research Inc.
> http://www.refractions.net
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to