public abstract class PointIteratorFromStructureData extends PointIteratorAbstract
Subclass must implement makeFeature() to turn the StructureData into a PointFeature.
PointFeatureIterator.Filter
calcBounds, info
Constructor and Description |
---|
PointIteratorFromStructureData(StructureDataIterator structIter,
PointFeatureIterator.Filter filter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Make sure that the iterator is complete, and recover resources.
|
boolean |
hasNext()
Check if another PointFeature is available.
|
protected abstract PointFeature |
makeFeature(int recnum,
StructureData sdata) |
PointFeature |
next()
Returns the next PointFeature.
|
calcBounds, finishCalcBounds, setCalculateBounds
public PointIteratorFromStructureData(StructureDataIterator structIter, PointFeatureIterator.Filter filter)
structIter
- original iteratorfilter
- optional filterprotected abstract PointFeature makeFeature(int recnum, StructureData sdata) throws java.io.IOException
java.io.IOException
public boolean hasNext()
PointFeatureIterator
Since this iterator may be used in a for-each statement, implementations should close
it the first
time this method returns false
, as it may not get closed otherwise.
public PointFeature next()
PointFeatureIterator
public void close()
PointFeatureIterator