Thanks for the response. If I am iterating over FeatureCollection, how do I get the MultiLineString from SimpleFeature?
Thanks Rob -----Original Message----- From: Michael Bedward [mailto:[email protected]] Sent: Tuesday, November 24, 2009 6:29 PM To: Heise, Robert Cc: [email protected] Subject: Re: [Geotools-gt2-users] Converting MultiLineString to Linestring Hi Robert MultiLineString mls = ... int N = mls.getNumGeometries(); LineString lines[] = new LineString[ N ]; for ( int i = 0; i < N; i++ ) { lines[ i ] = mls.getGeometryN( i ); } Hope this helps, Michael This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
