LinearIterator.withIndexes constructor
Creates an iterator starting at a specified component and vertex in a linear {@link Geometry}
@param linearGeom the linear geometry to iterate over @param componentIndex the component to start at @param vertexIndex the vertex to start at @throws IllegalArgumentException if linearGeom is not lineal
Implementation
LinearIterator.withIndexes(
this.linearGeom, int componentIndex, int vertexIndex) {
if (!(linearGeom is Lineal))
throw new ArgumentError("Lineal geometry is required");
numLines = linearGeom.getNumGeometries();
this.componentIndex = componentIndex;
this.vertexIndex = vertexIndex;
loadCurrentLine();
}