|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFeatureCollection
ForceCoordinateSystemFeatureResults
public class ForceCoordinateSystemFeatureResults
ForceCoordinateSystemFeatureResults 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:
ForceCoordinateSystemFeatureResults results =
new ForceCoordinateSystemFeatureResults( originalResults, forceCS );
CoordinateReferenceSystem originalCS =
originalResults.getFeatureType().getDefaultGeometry().getCoordinateSystem();
CoordinateReferenceSystem newCS =
reader.getFeatureType().getDefaultGeometry().getCoordinateSystem();
assertEquals( forceCS, newCS );
Field Summary |
---|
Fields inherited from class AbstractFeatureCollection |
---|
id, schema |
Constructor Summary | |
---|---|
ForceCoordinateSystemFeatureResults(FeatureCollection<SimpleFeatureType,SimpleFeature> results,
CoordinateReferenceSystem forcedCS)
|
|
ForceCoordinateSystemFeatureResults(FeatureCollection<SimpleFeatureType,SimpleFeature> results,
CoordinateReferenceSystem forcedCS,
boolean forceOnlyMissing)
|
Method Summary | |
---|---|
void |
closeIterator(Iterator close)
|
ReferencedEnvelope |
getBounds()
Subclasses need to override this. |
FeatureCollection<SimpleFeatureType,SimpleFeature> |
getOrigin()
Returns the feature results wrapped by this ForceCoordinateSystemFeatureResults |
Iterator<SimpleFeature> |
openIterator()
Factory method used to open an iterator over collection contents for use by AbstractFeatureCollection.iterator() and AbstractFeatureCollection.features() . |
int |
size()
Returns the number of elements in this collection. |
Methods inherited from class AbstractFeatureCollection |
---|
accepts, contains, containsAll, features, getID, getSchema, isEmpty, iterator, sort, subCollection, toArray, toArray |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForceCoordinateSystemFeatureResults(FeatureCollection<SimpleFeatureType,SimpleFeature> results, CoordinateReferenceSystem forcedCS) throws IOException, SchemaException
IOException
SchemaException
public ForceCoordinateSystemFeatureResults(FeatureCollection<SimpleFeatureType,SimpleFeature> results, CoordinateReferenceSystem forcedCS, boolean forceOnlyMissing) throws IOException, SchemaException
IOException
SchemaException
Method Detail |
---|
public Iterator<SimpleFeature> openIterator()
AbstractFeatureCollection
AbstractFeatureCollection.iterator()
and AbstractFeatureCollection.features()
.
If you return an instance of FeatureIterator some effort
is taken to call the FeatureIterator.close()
internally, however
we cannot offer any assurance that client code using AbstractFeatureCollection.iterator()
will perform the same check.
openIterator
in class AbstractFeatureCollection
public void closeIterator(Iterator close)
public int size()
AbstractFeatureCollection
size
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
size
in class AbstractFeatureCollection
Collection.size()
public ReferencedEnvelope getBounds()
AbstractFeatureCollection
getBounds
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
getBounds
in class AbstractFeatureCollection
org.geotools.data.FeatureResults#getBounds()
public FeatureCollection<SimpleFeatureType,SimpleFeature> getOrigin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |