Hi Michael, Andrea, thanks for your replies. The JTS DP looks great and I am going to try that out.
I should mention that I am doing some comparison analysis on contour lines. I.e. extracting them from rasters at different resolutions against extracting them from the highest resolution and then simplifing them. There are several pros and cons obviously and much depends on the use of the result. Up to now I am using GRASS's v.generalize method, which has a nice bunch of algos [1] for generalization, smoothing and removing of small features. I was just wondering if there is something in geotools or JTS in order to pilot things a bit better, and DP seems to be a good starting point. Going to check that out. Thanks for the hint, Ciao Andrea [1] http://grass.osgeo.org/gdp/html_grass64/v.generalize.html On Fri, Jan 22, 2010 at 8:50 AM, Andrea Aime <[email protected]> wrote: > Michael Bedward ha scritto: >> >> Hi Andrea, >> >> This might be relevant... >> >> >> http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/simplify/DouglasPeuckerSimplifier.html > > Right. DP is not used in the rendering engine > because it's so slow that trying to use it slows down things compared > to drawing the geometries as they are (as opposed to the cheap > simplification algorithm used now, which is an improvement). > > I asked about smoothing because in the GIS literature smoothing usually > involves adding points to make lines appear smoother, or, if you want, > more accurate that they really are, because the process adds details > instead of removing them: > http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=smooth_line_(data_management) > > Cheers > Andrea > > -- > Andrea Aime > OpenGeo - http://opengeo.org > Expert service straight from the developers. > ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
