// KML is defined only over wgs84 in lon/lat order, ignore what the WFS thinks the output
// crs should be
SimpleFeatureCollection sfc = (SimpleFeatureCollection) fc;
CoordinateReferenceSystem sourceCRS = sfc.getSchema().getCoordinateReferenceSystem();
if(sourceCRS != null && !CRS.equalsIgnoreMetadata(sourceCRS, DefaultGeographicCRS.WGS84)) {
sfc = new ReprojectingFeatureCollection(sfc, DefaultGeographicCRS.WGS84);
}
result.add(sfc);
}
return result;