Re: [Geotools-gt2-users] NTV1 and NTV2 support

2009-11-24 Thread Andrea Aime
Rueben Schulz ha scritto: To Sun, The short answer is no, geotools does not support NTV2 (or 1). If it did, the math transform would be in the referencing module, beside the NADCON transform (a similar NAD27 to NAD83 datum shift method used in the USA).

[Geotools-gt2-users] Converting MultiLineString to Linestring

2009-11-24 Thread Heise, Robert
Hello All, Is anybody aware of a method to convert a SimpleFeature which has a Type of MulitlineString to LineString? Is there a convenient mechanism to extract all Point in a mulitlinestring as java double, then create new linestring using factory? Thanks in advance Rob

Re: [Geotools-gt2-users] Converting MultiLineString to Linestring

2009-11-24 Thread Michael Bedward
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 -- Let

[Geotools-gt2-users] NPE in FeatureCollection.isEmpty

2009-11-24 Thread Stefan Krüger
Hi I am using 2.6.x branch from svn. Yesterday i used a different dataset with my application and now i get a strange NPEs while asking isEmpty() on an empty FeatureCollection coming from a Layer that has a Filter set: java.lang.NullPointerException at