|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectForceCoordinateSystemIterator
public class ForceCoordinateSystemIterator
ForceCoordinateSystemFeatureReader 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:
ForceCoordinateSystemFeatureReader reader =
new ForceCoordinateSystemFeatureReader( originalReader, forceCS );
CoordinateReferenceSystem originalCS =
originalReader.getFeatureType().getDefaultGeometry().getCoordianteSystem();
CoordinateReferenceSystem newCS =
reader.getFeatureType().getDefaultGeometry().getCoordianteSystem();
assertEquals( forceCS, newCS );
Field Summary | |
---|---|
protected SimpleFeatureBuilder |
builder
|
protected FeatureIterator<SimpleFeature> |
reader
|
Constructor Summary | |
---|---|
ForceCoordinateSystemIterator(FeatureIterator<SimpleFeature> reader,
SimpleFeatureType type,
CoordinateReferenceSystem cs)
Builds a new ForceCoordinateSystemFeatureReader |
Method Summary | |
---|---|
void |
close()
Closes this iterator and releases any system resources associated with it. |
SimpleFeatureType |
getFeatureType()
|
boolean |
hasNext()
Does another Feature exist in this Iteration. |
SimpleFeature |
next()
Get the next Feature in this iteration. |
void |
remove()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FeatureIterator<SimpleFeature> reader
protected SimpleFeatureBuilder builder
Constructor Detail |
---|
public ForceCoordinateSystemIterator(FeatureIterator<SimpleFeature> reader, SimpleFeatureType type, CoordinateReferenceSystem cs) throws SchemaException
reader
- cs
-
SchemaException
NullPointerException
- DOCUMENT ME!
IllegalArgumentException
- DOCUMENT ME!Method Detail |
---|
public SimpleFeatureType getFeatureType()
FeatureReader.getFeatureType()
public SimpleFeature next() throws NoSuchElementException
FeatureIterator
next
in interface Iterator<SimpleFeature>
next
in interface FeatureIterator<SimpleFeature>
NoSuchElementException
- If no more Features exist.FeatureReader.next()
public boolean hasNext()
FeatureIterator
Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
hasNext
in interface Iterator<SimpleFeature>
hasNext
in interface FeatureIterator<SimpleFeature>
FeatureReader.hasNext()
public void remove()
remove
in interface Iterator<SimpleFeature>
public void close()
FeatureIterator
close
in interface Closeable
close
in interface FeatureIterator<SimpleFeature>
FeatureReader.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |