|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.crs.ReprojectFeatureReader
public class 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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader,
org.opengis.referencing.crs.CoordinateReferenceSystem cs)
|
|
ReprojectFeatureReader(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader,
org.opengis.feature.simple.SimpleFeatureType schema,
org.opengis.referencing.operation.MathTransform transform)
|
Method Summary | |
---|---|
void |
close()
Implement close. |
FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getDelegate()
|
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
Implement getFeatureType. |
boolean |
hasNext()
Implement hasNext. |
org.opengis.feature.simple.SimpleFeature |
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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader, org.opengis.feature.simple.SimpleFeatureType schema, org.opengis.referencing.operation.MathTransform transform)
public ReprojectFeatureReader(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader, org.opengis.referencing.crs.CoordinateReferenceSystem cs) throws SchemaException, org.opengis.referencing.operation.OperationNotFoundException, java.util.NoSuchElementException, org.opengis.referencing.FactoryException
SchemaException
org.opengis.referencing.operation.OperationNotFoundException
java.util.NoSuchElementException
org.opengis.referencing.FactoryException
Method Detail |
---|
public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getDelegate()
getDelegate
in interface DelegatingFeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
Description ...
getFeatureType
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.lang.IllegalStateException
- DOCUMENT ME!FeatureReader.getFeatureType()
public org.opengis.feature.simple.SimpleFeature next() throws java.io.IOException, IllegalAttributeException, java.util.NoSuchElementException
Description ...
next
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
IllegalAttributeException
java.util.NoSuchElementException
java.lang.IllegalStateException
- DOCUMENT ME!
DataSourceException
- DOCUMENT ME!
IllegalAttributeException
- If the attributes read do not comply
with the FeatureType.FeatureReader.next()
public boolean hasNext() throws java.io.IOException
Description ...
hasNext
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
java.lang.IllegalStateException
- DOCUMENT ME!FeatureReader.hasNext()
public void close() throws java.io.IOException
Description ...
close
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
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 |