Skip to main content
Question

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


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
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • 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

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

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

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
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • 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