Cannot prevent decimation in StreamingRenderer
----------------------------------------------
Key: GEOT-2429
URL: http://jira.codehaus.org/browse/GEOT-2429
Project: GeoTools
Issue Type: Bug
Components: core geometry, core render
Affects Versions: 2.6-M1, 2.5.4
Reporter: Milton Jonathan
Assignee: Andrea Aime
Priority: Minor
Attachments: geotools-tecgraf.2.5.x.render_generalization.patch
The issue is that in certain situations the user may *not* want to generalize
or decimate the geometries (e.g., when exporting to a SVG or printing).
StreamingRenderer already has a nice setGeneralizationDistance() method which
can be used to prevent decimation, and already expects that a value of zero
should mean "no decimation". However, it does not respect it!
A patch is provided that adds that support. It changes the method
getDecimator() to just check the generalization distance and if appropriate
return a Decimator with spanx=spany=-1, which should do nothing.
Decimator.decimate() already acts this way, doing nothing if spanx==-1. However
there was also a need to change Decimator.decimateTransformGeneralize() to do
the same.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel