Class ForceCoordinateSystemFeatureReader

Object
ForceCoordinateSystemFeatureReader
All Implemented Interfaces:
Closeable, AutoCloseable, FeatureReader<SimpleFeatureType,SimpleFeature>

public class ForceCoordinateSystemFeatureReader extends Object implements FeatureReader<SimpleFeatureType,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().getCoordinateSystem();

 CoordinateReferenceSystem newCS =
     reader.getFeatureType().getDefaultGeometry().getCoordinateSystem();

 assertEquals( forceCS, newCS );
 
Author:
jgarnett, Refractions Research, Inc., aaime, $Author: jive $ (last modification)