/** test transforming all geometries contained within a FeatureCollection */ public void testTransformFeatureCollection() { try { URL url = new URL(Configuration.getGMLBaseDir(), Configuration.GML_COMPLEX_EXAMPLE); GMLFeatureCollectionDocument doc = new GMLFeatureCollectionDocument(); doc.load(url); FeatureCollection fc = doc.parse(); CoordinateSystem crs = CRSFactory.create("epsg:31467"); GeoTransformer gt = new GeoTransformer(crs); gt.transform(fc); for (int i = 0; i < fc.size(); i++) { assertEquals(true, isTargetCRS(fc.getFeature(i), crs)); } // GMLFeatureAdapter ada = new GMLFeatureAdapter(); // ada.export( fc ).prettyPrint( System.out ); } catch (Exception e) { LOG.logError(e.getLocalizedMessage(), e); assertEquals(true, false); } }