|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.crs.ReprojectFeatureIterator
public class ReprojectFeatureIterator
ReprojectFeatureReader provides a reprojection for FeatureTypes.
ReprojectFeatureReader is a wrapper used to reproject GeometryAttributes to a user supplied CoordinateReferenceSystem from the original CoordinateReferenceSystem supplied by the original FeatureReader.
Example Use:
ReprojectFeatureReader reader =
new ReprojectFeatureReader( originalReader, reprojectCS );
CoordinateReferenceSystem originalCS =
originalReader.getFeatureType().getDefaultGeometry().getCoordinateSystem();
CoordinateReferenceSystem newCS =
reader.getFeatureType().getDefaultGeometry().getCoordinateSystem();
assertEquals( reprojectCS, newCS );
TODO: handle the case where there is more than one geometry and the other
geometries have a different CS than the default geometry
Constructor Summary | |
---|---|
ReprojectFeatureIterator(FeatureIterator<org.opengis.feature.simple.SimpleFeature> reader,
org.opengis.feature.simple.SimpleFeatureType schema,
org.opengis.referencing.operation.MathTransform transform)
|
Method Summary | |
---|---|
void |
close()
Implement close. |
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
Implement getFeatureType. |
boolean |
hasNext()
Implement hasNext. |
java.lang.Object |
next()
Implement next. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReprojectFeatureIterator(FeatureIterator<org.opengis.feature.simple.SimpleFeature> reader, org.opengis.feature.simple.SimpleFeatureType schema, org.opengis.referencing.operation.MathTransform transform)
Method Detail |
---|
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
Description ...
java.lang.IllegalStateException
- DOCUMENT ME!FeatureReader.getFeatureType()
public java.lang.Object next() throws java.util.NoSuchElementException
Description ...
next
in interface java.util.Iterator
java.io.IOException
IllegalAttributeException
java.util.NoSuchElementException
java.lang.IllegalStateException
- DOCUMENT ME!
DataSourceException
- DOCUMENT ME!FeatureReader.next()
public void remove()
remove
in interface java.util.Iterator
public boolean hasNext()
Description ...
hasNext
in interface java.util.Iterator
java.io.IOException
java.lang.IllegalStateException
- DOCUMENT ME!FeatureReader.hasNext()
public void close()
Description ...
java.io.IOException
java.lang.IllegalStateException
- DOCUMENT ME!FeatureReader.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |