Dear Michael,
I like this application of Occam's razor - and now that I think of it,
exactly what I used a few years ago. Thank you very much!
Martin


-- 
Martin Tomko, PhD.
Senior Project Manager, Information Infrastructure Design, AURIN
Level 5, Architecture Building
University of Melbourne VIC 3010
AUSTRALIA

T:  +61 3 9035 3298
E:  [email protected] <mailto:[email protected]>
W: www.aurin.org.au <www.aurin.org.au>





On 24/11/11 10:53 AM, "Michael Bedward" <[email protected]> wrote:

>Simplest is best in this case I think...
>
>        while (featureIterator.hasNext()) {
>            SimpleFeature feature = featureIterator.next();
>            MultiPolygon mp = (MultiPolygon) feature.getDefaultGeometry();
>            int n = mp.getNumGeometries();
>            for (int i = 0; i < n; i++) {
>                Polygon poly = (Polygon) mp.getGeometryN(i);
>                // feed poly into graph
>            }
>        }



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to