use of org.geotoolkit.feature.ReprojectMapper in project geotoolkit by Geomatys.
the class ReprojectProcess method execute.
/**
* {@inheritDoc }
*/
@Override
protected void execute() {
final FeatureCollection inputFeatureList = inputParameters.getValue(VectorDescriptor.FEATURE_IN);
final CoordinateReferenceSystem targetCRS = inputParameters.getValue(ReprojectDescriptor.CRS_IN);
final FeatureCollection resultFeatureList = FeatureStreams.decorate(inputFeatureList, new ReprojectMapper(inputFeatureList.getType(), targetCRS));
outputParameters.getOrCreate(VectorDescriptor.FEATURE_OUT).setValue(resultFeatureList);
}
Aggregations