Class ReprojectFeatureResults

  • All Implemented Interfaces:
    SimpleFeatureCollection, FeatureCollection<SimpleFeatureType,​SimpleFeature>

    public class ReprojectFeatureResults
    extends AbstractFeatureCollection
    ReprojectFeatureReader provides a reprojection for FeatureTypes.

    ReprojectFeatureResults is a wrapper used to reproject GeometryAttributes to a user supplied CoordinateReferenceSystem from the original CoordinateReferenceSystem supplied by the original FeatureResults.

    Example Use:

    
     ReprojectFeatureResults results =
         new ReprojectFeatureResults( originalResults, reprojectCS );
    
     CoordinateReferenceSystem originalCS =
         originalResults.getFeatureType().getDefaultGeometry().getCoordinateSystem();
    
     CoordinateReferenceSystem newCS =
         results.getFeatureType().getDefaultGeometry().getCoordinateSystem();
    
     assertEquals( reprojectCS, newCS );
     
    Author:
    aaime, $Author: jive $ (last modification)