Skip to main content
Question

Calculate the coordinates of a special line

  • December 1, 2019
  • 2 replies
  • 21 views

charry
Supporter
Forum|alt.badge.img+5

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img
  • 104 replies
  • December 1, 2019

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.

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • December 1, 2019

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