* @return list of point results containing the matched point on the geometry, the spatial record and the distance each
*/
public static List<PointResult> findClosestEdges(Point point, Layer layer, Geometry filter) {
ArrayList<PointResult> results = new ArrayList<PointResult>();
Iterator<SpatialDatabaseRecord> records = layer.getIndex().search(new SearchIntersect(layer, filter));
while (records.hasNext()) {
SpatialDatabaseRecord record = records.next();
Geometry geom = record.getGeometry();
if (geom instanceof LineString) {
LocationIndexedLine line = new LocationIndexedLine(geom);