i have two shp. in one shp are polygons, and the second shp contain line. this lines need to be closed with polygons in first shp. how to find parts of these polygons which closed lines? i try with neighbor finder , but don't give right result.
i have two shp. in one shp are polygons, and the second shp contain line. this lines need to be closed with polygons in first shp. how to find parts of these polygons which closed lines? i try with neighbor finder , but don't give right result.
The Area port of the LineOnAreaOverlayer will supply you with the areas that contain lines attributes.
Is this what you mean by closed?
i attach example.... polygons are white, green line is line from second shp,
and i need to get red line..
http://www.filedropper.com/example_2
Itay
Whether a polyline or an area doesnt matter if u do this.
Use intersector.
Then use a spatialrelator, enter output from intersector line into both inputs to SpatialRelator. Set calculate cardinality to yes.
Expose cardinality (relationships{}.card_line). U have to use a AttributeExposer for this, as it is a hidden attribute, you cannot select it from a roll-down menu..alas). (index 0 willd do unless more then 2 objects intersect)
Then use tester to test on related_candidates>1 and card_line=1
U should now have your intersections.
tnx for answer. i do all this, but from tester doesn't come out anything from passed port. does and node from intersector goes to spatial relator?
The expression related_candidates>1 and card_line=1 for the tester will not result in the line you are interested in, since all card_line are equal to 0.
You can skip the SpatialRelator and test the lines resulting from the Intersector for _overlaps =2
Itay
This example might be also helpful. Using the Clipper transformes. http://www.pragmatica.jp/fmepedia/131218WorkspaceExample.zip
Takashi
why did you create the middle point of the line? i can't get all required line, only 10% of them.
Using the Inspector, check whether the result of each step is good.
http://www.filedropper.com/extractpart
This can be a cse of decimal rounding, have you tried rounding the decimals of the coordinates before the spatial test?