Skip to main content
Question

VertexCounter transformer giving incorrect vertex count on line segments containing arcs.

  • April 23, 2019
  • 30 replies
  • 134 views

Show first post
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.

30 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • April 29, 2019

I think a PythonCaller with this check should work:

geom = feature.getGeometry()
if isinstance(geom, fmeobjects.FMEPath):
    # feature geometry is an FMEPath instance

I was thinking of a non-python solution. It seems strange that you can't filter out paths when there are quite a few cases where you might want to treat them differently. I can fudge it with a combination of a GeometryPropertySetter and GeometryPropertyExtractor but i'm surprised there's not a better way


david_r
Celebrity
  • April 29, 2019

I was thinking of a non-python solution. It seems strange that you can't filter out paths when there are quite a few cases where you might want to treat them differently. I can fudge it with a combination of a GeometryPropertySetter and GeometryPropertyExtractor but i'm surprised there's not a better way

Unfortunately I'm not aware of any non-Python solution either. I agree that it would be handy if e.g. the GeometryFilter allowed you to check for path.


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • April 29, 2019

I was thinking of a non-python solution. It seems strange that you can't filter out paths when there are quite a few cases where you might want to treat them differently. I can fudge it with a combination of a GeometryPropertySetter and GeometryPropertyExtractor but i'm surprised there's not a better way

That's another one I'll raise with the developers. Seems crazy there is no way to tell if a feature is a path. Not even fme_type or fme_geometry will do it.


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • April 29, 2019

I was thinking of a non-python solution. It seems strange that you can't filter out paths when there are quite a few cases where you might want to treat them differently. I can fudge it with a combination of a GeometryPropertySetter and GeometryPropertyExtractor but i'm surprised there's not a better way

Filed as an enhancement request. The only other way I can see is to use GeometryExtractor to output XML and then check for the <path> tag.


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • April 29, 2019

Filed as an enhancement request. The only other way I can see is to use GeometryExtractor to output XML and then check for the <path> tag.

My fudge was to set a geometry name then use the GeometryPropertyExtractor to only extract path - only paths come out the extracted port then