Skip to main content
Question

Polygons not covered with lines

  • July 14, 2014
  • 5 replies
  • 42 views

Hi,

 

 

i have two shapes, polygon and lines. How to find polygons that is not completely covered with lines? Tnx
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.

5 replies

takashi
Celebrity
  • July 14, 2014
Hi,

 

 

If you need to find polygons which never overlap any line, apply the LineOnAreaOverlayer, and look at overlap count attribute (named "_overlaps" by default) of the output Areas.

 

 

Takashi

  • Author
  • July 14, 2014
no, for example, i have one polygon and five lines that form the polygon. For example, one of these five lines are missing and i need that polygon in result.

takashi
Celebrity
  • July 14, 2014
OK. How about this approach?

 

Send the lines to the LineJoiner --> GeometryCoercer (Geometry Type: fme_polygon).

 

If the lines forms a polygon, output will be a polygon. If not, output is still a line.

 

Then, select output lines (GeometryFilter), and compare them with the polygons to select required polygons (SpatialFilter etc.).

takashi
Celebrity
  • July 14, 2014
Alternatively, the AreaBuilder could be used instead of the LineJoiner and GeometryCoercer.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • July 14, 2014
GeometryCoercer on the polygon and than SpatialRelator between inputlines and the coerced lines from the polygon.

 

If topology is the same you can use "Equal".

 

If it is not, "INTERSECT". Calclate cardinality and test for relationships{}.card.line>0

 

Tis will eliminate the bare line.