Class ForceCoordinateSystemFeatureResults

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

    public class ForceCoordinateSystemFeatureResults
    extends AbstractFeatureCollection
    ForceCoordinateSystemFeatureResults provides a CoordinateReferenceSystem for FeatureTypes.

    ForceCoordinateSystemFeatureReader is a wrapper used to force GeometryAttributes to a user supplied CoordinateReferenceSystem rather then the default supplied by the DataStore.

    Example Use:

    
     ForceCoordinateSystemFeatureResults results =
         new ForceCoordinateSystemFeatureResults( originalResults, forceCS );
    
     CoordinateReferenceSystem originalCS =
         originalResults.getFeatureType().getDefaultGeometry().getCoordinateSystem();
    
     CoordinateReferenceSystem newCS =
         reader.getFeatureType().getDefaultGeometry().getCoordinateSystem();
    
     assertEquals( forceCS, newCS );
     
    Author:
    aaime