|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.crs.ReprojectFeatureReader
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 | |
ReprojectFeatureReader(FeatureReader reader,
org.opengis.referencing.crs.CoordinateReferenceSystem cs)
|
|
ReprojectFeatureReader(FeatureReader reader,
FeatureType schema,
org.opengis.referencing.operation.MathTransform transform)
|
Method Summary | |
void |
close()
Implement close. |
FeatureType |
getFeatureType()
Implement getFeatureType. |
boolean |
hasNext()
Implement hasNext. |
Feature |
next()
Implement next. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReprojectFeatureReader(FeatureReader reader, FeatureType schema, org.opengis.referencing.operation.MathTransform transform)
public ReprojectFeatureReader(FeatureReader reader, org.opengis.referencing.crs.CoordinateReferenceSystem cs) throws SchemaException, org.opengis.referencing.operation.OperationNotFoundException, java.util.NoSuchElementException, org.opengis.referencing.FactoryException
Method Detail |
public FeatureType getFeatureType()
Description ...
getFeatureType
in interface FeatureReader
java.lang.IllegalStateException
- DOCUMENT ME!FeatureReader.getFeatureType()
public Feature next() throws java.io.IOException, IllegalAttributeException, java.util.NoSuchElementException
Description ...
next
in interface FeatureReader
java.io.IOException
IllegalAttributeException
java.util.NoSuchElementException
java.lang.IllegalStateException
- DOCUMENT ME!
DataSourceException
- DOCUMENT ME!FeatureReader.next()
public boolean hasNext() throws java.io.IOException
Description ...
hasNext
in interface FeatureReader
java.io.IOException
java.lang.IllegalStateException
- DOCUMENT ME!FeatureReader.hasNext()
public void close() throws java.io.IOException
Description ...
close
in interface FeatureReader
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 |