Skip to main content
Solved

create voronoi polygons in a loop


Forum|alt.badge.img

hi there,

I have a question regarding loops in FME and my inputs are:

A point file(have an ID field) and polygon file (have an ID field).

Now I want to create voronoi polygons from point file but in a loop in which I will select first polygon and all points in side it, create voronoi polygons, clip voronoi polygons with selected polygon and save the result.

Then loop goes to second feature and same procedure runs till the end of polygon file.

In this way my voronoi polygons will be seamless with input polygon layers which is for me very important.

This is first time I am doing something in FME with some loops. I have searched and sofar, I have not found any thing which can help me. so l am looking for some suggestion.

S/W

FME Desktop 2017.0 64bit

Windows 7 64bit

Best answer by jdh

Why not use a spatialRelator on your points to assign the polygonID to them, and then use that ID as Group By on the VoronoiDiagrammer and also on the clipper.

View original
Did this help you find an answer to your question?

3 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • August 22, 2017

Why not use a spatialRelator on your points to assign the polygonID to them, and then use that ID as Group By on the VoronoiDiagrammer and also on the clipper.


Forum|alt.badge.img
  • Author
  • August 23, 2017
jdh wrote:

Why not use a spatialRelator on your points to assign the polygonID to them, and then use that ID as Group By on the VoronoiDiagrammer and also on the clipper.

Yes it work, thanks a lot for your suggestion.

 


mava
Participant
Forum|alt.badge.img+3
  • Participant
  • August 29, 2017

Hi, I have the same issue.

I want to create voronoi Polygons (Node Areas) within municipalities borders. The point file contains attributes like de NODE_ID. The municipality file contain a ESRI_ID which is not sequence in order.

Remark:

It is strictly undesired to have polygons representing Node Areas within the limits of a municipality that do not contain at least one building with the related Node ID.

How do I assign the two ID fields in the SpatialRelator?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings