Skip to main content
Hi,

 

 

i have two shapes, polygon and lines. How to find polygons that is not completely covered with lines? Tnx
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
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.
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.).
Alternatively, the AreaBuilder could be used instead of the LineJoiner and GeometryCoercer.
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.

 

 


Reply