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