1

I have a vector file with a single, simple polygon (perhaps 10 nodes). I want to add more nodes to this polygon, retaining the original shape.

The obvious question here is 'why would you want to do that?'. It solves an issue further down stream in the process. It's a hack.

Is that possible in FME? Can you read in a vector file, add nodes to it, and write it out again? Which transformer might you use to achieve that?

3
  • The Densifier?
    – mkennedy
    Commented Feb 19, 2015 at 17:48
  • I think part of your problem is terminology -- polygons have vertices, not nodes (networks have nodes where lines are linked). A search on "densify" or "vertex densification" might address your issue.
    – Vince
    Commented Feb 19, 2015 at 17:50
  • Cheers Vince, helping solve this problem and doubtless preventing many future problems.
    – Ben Mayo
    Commented Feb 20, 2015 at 9:22

2 Answers 2

2

As was mentioned in the comments, the transformer you're after is the Densifier.

From the help:

Adds vertices to each feature by interpolating new coordinates at fixed intervals.

You have the option to make the vertices evenly spaced or at a defined interval.

Of course, as mKurowsKi points out, there are many ways to do this in FME.

1

As is always the case with FME, there are many ways to accomplish this task.

Here is one way that centers around Iterative Snipper (available from the FME Store):enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.