Class ForceCoordinateSystemIterator

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Iterator<SimpleFeature>, SimpleFeatureIterator, FeatureIterator<SimpleFeature>

    public class ForceCoordinateSystemIterator
    extends Object
    implements SimpleFeatureIterator, Iterator<SimpleFeature>
    ForceCoordinateSystemFeatureReader 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:

    
     ForceCoordinateSystemFeatureReader reader =
         new ForceCoordinateSystemFeatureReader( originalReader, forceCS );
    
     CoordinateReferenceSystem originalCS =
         originalReader.getFeatureType().getDefaultGeometry().getCoordianteSystem();
    
     CoordinateReferenceSystem newCS =
         reader.getFeatureType().getDefaultGeometry().getCoordinateSystem();
    
     assertEquals( forceCS, newCS );
     
    Author:
    jgarnett, Refractions Research, Inc., aaime, $Author: jive $ (last modification)