I have a LineString featureSource. For one feature from source I want to take intersected lines by startPoint or endPoint from same featureSource.
I tried this for just endPoint:
Filter filter = ff.intersects(ff.literal(featureLastCoordinate), ff.function("endPoint", ff.literal(featureGeom)));
FeatureCollection<SimpleFeatureType, SimpleFeature> intersectedFeatColl = inputSource.getFeatures(filter);
And this:
Filter filter = ff.and(ff.intersects(ff.property(featureGeomPropName), ff.literal(featureLastCoordinate)), ff.function("endPoint", ff.literal(featureGeom)));
I cant find correct expressions for the filter. For example:
I want to get other lines for yellow line.