org.geotools.data.crs
Class ForceCoordinateSystemIterator
java.lang.Object
org.geotools.data.crs.ForceCoordinateSystemIterator
- All Implemented Interfaces:
- java.util.Iterator<org.opengis.feature.simple.SimpleFeature>
public class ForceCoordinateSystemIterator
- extends java.lang.Object
- implements java.util.Iterator<org.opengis.feature.simple.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().getCoordianteSystem();
assertEquals( forceCS, newCS );
- Version:
- $Id: ForceCoordinateSystemIterator.java 32123 2008-12-30 16:53:44Z aaime $
- Author:
- jgarnett, Refractions Research, Inc., aaime, $Author: jive $ (last modification)
Constructor Summary |
ForceCoordinateSystemIterator(FeatureIterator<org.opengis.feature.simple.SimpleFeature> reader,
org.opengis.feature.simple.SimpleFeatureType type,
org.opengis.referencing.crs.CoordinateReferenceSystem cs)
Builds a new ForceCoordinateSystemFeatureReader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected FeatureIterator<org.opengis.feature.simple.SimpleFeature> reader
builder
protected SimpleFeatureBuilder builder
ForceCoordinateSystemIterator
public ForceCoordinateSystemIterator(FeatureIterator<org.opengis.feature.simple.SimpleFeature> reader,
org.opengis.feature.simple.SimpleFeatureType type,
org.opengis.referencing.crs.CoordinateReferenceSystem cs)
throws SchemaException
- Builds a new ForceCoordinateSystemFeatureReader
- Parameters:
reader
- cs
-
- Throws:
SchemaException
java.lang.NullPointerException
- DOCUMENT ME!
java.lang.IllegalArgumentException
- DOCUMENT ME!
getFeatureType
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
- See Also:
FeatureReader.getFeatureType()
next
public org.opengis.feature.simple.SimpleFeature next()
throws java.util.NoSuchElementException
- Specified by:
next
in interface java.util.Iterator<org.opengis.feature.simple.SimpleFeature>
- Throws:
java.util.NoSuchElementException
- See Also:
FeatureReader.next()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<org.opengis.feature.simple.SimpleFeature>
- See Also:
FeatureReader.hasNext()
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<org.opengis.feature.simple.SimpleFeature>
close
public void close()
- See Also:
FeatureReader.close()
Copyright © 1996-2010 Geotools. All Rights Reserved.