Question

Calculate the coordinates of a special line

  • 1 December 2019
  • 2 replies
  • 1 view

Badge +3

green is rectangle?I want to get the all red line ,Which converter to use?


2 replies

Badge

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.
Userlevel 1
Badge +21

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

Reply