#19 Simplifying empty polygon gives ArrayIndexOutOfBoundsExcepti

open
nobody
None
5
2011-07-10
2011-07-10
Jaan Vajakas
No

Calling DouglasPeuckerSimplifier.simplify on an empty polygon causes ArrayIndexOutOfBoundsException (see the attached test case). It would be nicer if it did not give an exception and returned an empty geometry. I am using JTS 1.12.

Discussion

  • Jaan Vajakas
    Jaan Vajakas
    2011-07-10

    test case

     
    Attachments