|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.feature.collection.AbstractFeatureCollection
org.geotools.data.crs.ReprojectFeatureResults
public class ReprojectFeatureResults
ReprojectFeatureReader provides a reprojection for FeatureTypes.
ReprojectFeatureResults is a wrapper used to reproject GeometryAttributes to a user supplied CoordinateReferenceSystem from the original CoordinateReferenceSystem supplied by the original FeatureResults.
Example Use:
ReprojectFeatureResults results =
new ReprojectFeatureResults( originalResults, reprojectCS );
CoordinateReferenceSystem originalCS =
originalResults.getFeatureType().getDefaultGeometry().getCoordinateSystem();
CoordinateReferenceSystem newCS =
results.getFeatureType().getDefaultGeometry().getCoordinateSystem();
assertEquals( reprojectCS, newCS );
Field Summary |
---|
Fields inherited from class org.geotools.feature.collection.AbstractFeatureCollection |
---|
id, listeners, open, schema |
Constructor Summary | |
---|---|
ReprojectFeatureResults(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> results,
org.opengis.referencing.crs.CoordinateReferenceSystem destinationCS)
Creates a new reprojecting feature results |
Method Summary | |
---|---|
void |
closeIterator(java.util.Iterator close)
Please override to cleanup after your own iterators, and any used resources. |
ReferencedEnvelope |
getBounds()
This method computes reprojected bounds the hard way, but computing them feature by feature. |
FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getOrigin()
Returns the feature results wrapped by this reprojecting feature results |
java.util.Iterator |
openIterator()
Open a resource based Iterator, we will call close( iterator ). |
int |
size()
Returns the number of elements in this collection. |
Methods inherited from class org.geotools.feature.collection.AbstractFeatureCollection |
---|
accepts, accepts, add, addAll, addAll, addListener, clear, close, close, contains, containsAll, features, getID, getOpenIterators, getSchema, isEmpty, iterator, purge, remove, removeAll, removeListener, retainAll, sort, subCollection, subList, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReprojectFeatureResults(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> results, org.opengis.referencing.crs.CoordinateReferenceSystem destinationCS) throws java.io.IOException, SchemaException, org.opengis.referencing.operation.TransformException, org.opengis.referencing.operation.OperationNotFoundException, java.util.NoSuchElementException, org.opengis.referencing.FactoryException
results
- destinationCS
-
java.io.IOException
SchemaException
org.opengis.referencing.operation.TransformException
org.opengis.referencing.FactoryException
java.util.NoSuchElementException
org.opengis.referencing.operation.OperationNotFoundException
CannotCreateTransformException
java.lang.NullPointerException
- DOCUMENT ME!
java.lang.IllegalArgumentException
Method Detail |
---|
public java.util.Iterator openIterator()
AbstractFeatureCollection
Please subclass to provide your own iterator for the the ResourceCollection,
note iterator()
is implemented to call open()
and track the results in for later purge()
.
openIterator
in class AbstractFeatureCollection
public void closeIterator(java.util.Iterator close)
AbstractFeatureCollection
As an example if the iterator was working off a File then the inputstream should be closed.
Subclass must call super.close( close ) to allow the list of open iterators to be adjusted.
closeIterator
in class AbstractFeatureCollection
close
- Iterator, will not be null
public int size()
AbstractFeatureCollection
size
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
size
in class AbstractFeatureCollection
Collection.size()
public ReferencedEnvelope getBounds()
getBounds
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
getBounds
in class AbstractFeatureCollection
org.geotools.data.FeatureResults#getBounds()
public FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getOrigin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |