What was your simplification tolerance? If it was 0 as well, then
nothing would be changed.
If not, this might be a bug - although this is a bit outside what would
be considered as reasonable input to a simplification routine.
Jeff Adams wrote:
I have some code that creates "circle" polygons given a center,
radius, and number of points. The circle gets passed to some other
code that happens to simplify the polygon (using DouglasPeucker).
I accidentally wound up calling this code with a radius of zero. This
produced a 46-point polygon where all the points were identical. What
was surprising to me is that the simplifier didn't seem to change it
at all. I would have expected it to return a single point, or throw
an exception, or something. Is this (doing nothing) the expected
behavior?
Thanks,
Jeff
------------------------------------------------------------------------
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel
--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel