Skip to main content
Solved

Vertex counter

  • April 14, 2015
  • 1 reply
  • 138 views

Hey,

 

 

I am trying to count the vertici of a polygon, so I can select polygons with a certain amount of vertici and remove them from the original polygon. I have tried a lot, but it's not working. Anyone?

Best answer by takashi

Hi,

 

 

If your purpose is just to count the number of vertices, you can use the FME Feature Function called "NumCoords" with the ExpressionEvaluator or the AttributeCreator.

 

Note that the number returned by the function includes the number of parts by default if the geometry is an aggregate (multi-part).

 

If the input geometry may be an aggregate, use "FLATTEN_AGGREGATE" option so that the resulting number excludes the number of parts.

 

 

 

Takashi
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • Best Answer
  • April 14, 2015
Hi,

 

 

If your purpose is just to count the number of vertices, you can use the FME Feature Function called "NumCoords" with the ExpressionEvaluator or the AttributeCreator.

 

Note that the number returned by the function includes the number of parts by default if the geometry is an aggregate (multi-part).

 

If the input geometry may be an aggregate, use "FLATTEN_AGGREGATE" option so that the resulting number excludes the number of parts.

 

 

 

Takashi