Hi There, I have a set of points that make up an area of interest. I am trying to create a polygon using the points, using Linebuilder & LineCloser. It does create the polygon but it's not what I was expecting. I am looking for some feedback on how to resolve this. Thanks Jay
I would create the polygon using a HullAccumulator
Or if they are all rectangles, the BoundingBoxAcculmulator is also an option. Use the Group by option to create rectangles per grouping attribute.
I would create the polygon using a HullAccumulator
Thanks Erik for your quick feedback. Using HullAccumulator with Concave option, I get this. It's better than what i had before, tried few alpha values but still not getting clean edge.
With Bounding Box Accumulator, it creates a bounding box that covers all the polygons, this wotn work in this case.
Thanks
The important thing to note about the LineBuilder is that it'll construct the line in the exact order that it receives the points. For this reason, you'll probably want to use something like a Sorter before the LineBuilder to make sure your point features are in the order that you want your polygon vertices.
Or if they are all rectangles, the BoundingBoxAcculmulator is also an option. Use the Group by option to create rectangles per grouping attribute.
Because grouping should get you the 4 areas and not one single area for all points.
Or if they are all rectangles, the BoundingBoxAcculmulator is also an option. Use the Group by option to create rectangles per grouping attribute.
It is creating a set of points (I tried to place them in the workspace at the location the points are created) and then generates the polygons.
Hope this helps.bbox-example.fmw
Or if they are all rectangles, the BoundingBoxAcculmulator is also an option. Use the Group by option to create rectangles per grouping attribute.
Before creating the vertices from the original polygons, you could add a dummy attribute by using a Counter transformer and the use that to Group by.
Hope this will give you ideas how to move forward.
Or if they are all rectangles, the BoundingBoxAcculmulator is also an option. Use the Group by option to create rectangles per grouping attribute.
Or if they are all rectangles, the BoundingBoxAcculmulator is also an option. Use the Group by option to create rectangles per grouping attribute.
starting with polygons and then trying to merge these to create a combined
geometry that is made up of all the polygons. Our existing workspace does use
snapping/dissolving to do this. It works fine mostly but we came across an
issue where workspace misses some of the polygons. The odd thing about this is
that if I run FME process with smaller dataset it works fine but when running
with full dataset, it misses polygons. I have an active case with FME support
on this issue and have provided them with recordings.
In the meantime, I am looking to find alternative approaches for solving this
problem. I converted polygon vertices to points and then hoping to build
polygon from there. I came across HullAccumlator transformer that seemed
promising but transformer all points to be in sequence to work properly, which
isn’t the case as each individual polygon has its own orientation. This is what
I get.
I am trying to see if Bounding Box Accumulator can provide what I am looking for.
Thanks
starting with polygons and then trying to merge these to create a combined
geometry that is made up of all the polygons. Our existing workspace does use
snapping/dissolving to do this. It works fine mostly but we came across an
issue where workspace misses some of the polygons. The odd thing about this is
that if I run FME process with smaller dataset it works fine but when running
with full dataset, it misses polygons. I have an active case with FME support
on this issue and have provided them with recordings.
In the meantime, I am looking to find alternative approaches for solving this
problem. I converted polygon vertices to points and then hoping to build
polygon from there. I came across HullAccumlator transformer that seemed
promising but transformer all points to be in sequence to work properly, which
isn’t the case as each individual polygon has its own orientation. This is what
I get.
I am trying to see if Bounding Box Accumulator can provide what I am looking for.
Thanks
Hi,
Is it possible to post the data to give a try...
Hi,
I assumed input is polygon. You are converting polygon to point and joining all the points back to become polygon. So I have prepared the workbench based on this logic. Hope this helps...
This workflow could also be a workaround in the interim. Assume the input geometries are rectangle polygons adjacent together and there could be a small gap between them.
Hi,
Is it possible to post the data to give a try...
test.zip
Hi,
I assumed input is polygon. You are converting polygon to point and joining all the points back to become polygon. So I have prepared the workbench based on this logic. Hope this helps...
This workflow could also be a workaround in the interim. Assume the input geometries are rectangle polygons adjacent together and there could be a small gap between them.
The right orange shape is a single polygon which is created from your sample data with the workflow above. Is this your desired result?
This workflow could also be a workaround in the interim. Assume the input geometries are rectangle polygons adjacent together and there could be a small gap between them.
What do you mean by "but still keeps inside polygons boundaries"???
This workflow could also be a workaround in the interim. Assume the input geometries are rectangle polygons adjacent together and there could be a small gap between them.