green is rectangle?I want to get the all red line ,Which converter to use?
Page 1 / 1
1. Two CoordinateExtractors with Coordinate Index 0 (startpoint) on one and -1 (endpoint) on the other.
2. VertexCreator to create point features from the extracted coordinates.
3. PointOnAreaOverlayer to catch the start- and endpoints that fall inside a rectangle.
4. FeatureMerger to give a line an "inside rectangle" attribute from its point if the point was inside a rectangle.
Assuming you want lines that either finish or start within the box, you can also create an attribute on the lines with value 1020F1102
Then use a spatial filter with the polygon as the filter and the lines as candidate. Under spatial predicates to test set the test to the attribute you set above