[Jts-topo-suite-user] Should more things be iterable?
Brought to you by:
dr_jts
From: David T. <no...@no...> - 2012-10-29 19:59:13
|
Is there a reason that very few things in JTS are iterable? I keep having to write code like this: for (int i = 0; i < polygon.getNumInteriorRing(); ++i) { LinearRing interior = polygon.getInteriorRingN(i); ... } When I want to write: for (LinearRing interior : polygon.getInteriorRings()) { ... } It seems like this would be pretty straightforward to add in to the dozen or so places that need it, and would greatly improve usability. |