featureIterator.close();
}
if (nearestFeature != null) {
LengthIndexedLine lengthIndexedLine = new LengthIndexedLine(
(Geometry) nearestFeature.getDefaultGeometryProperty().getValue());
double lineIndex = lengthIndexedLine.indexOf(nearestCoords[1]);
double lineLength = ((Geometry) nearestFeature.getDefaultGeometryProperty()
.getValue()).getLength();
Double featureFromMeasure = (Double) nearestFeature.getProperty(fromMeasureAttb)
.getValue();
Double featureToMeasure = (Double) nearestFeature.getProperty(toMeasureAttb)