Skip to main content
Question

Using FME PythonCaller to Call Arcpy Feature Vertices to Points

  • October 9, 2019
  • 4 replies
  • 76 views

angwan
Contributor
Forum|alt.badge.img+7

I would like to use FME PythonCaller to call ArcPy Feature Vertices to Points. An advise towards this approach will be appreciated

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.

4 replies

todd_davis
Influencer
Forum|alt.badge.img+23
  • Influencer
  • October 9, 2019

You could just write and Esri dataset with a featurewriter and then pass the summary to the to a pythoncaller (scripting of workspace set to an Esri Arcgis python). If its only one layer, you could even hardcode the input/output with something like this:

 

What is the outcome you want, because there are many transformers in FME that can do this and its probably better to use them.

Cheers,

Todd


angwan
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • October 10, 2019

You could just write and Esri dataset with a featurewriter and then pass the summary to the to a pythoncaller (scripting of workspace set to an Esri Arcgis python). If its only one layer, you could even hardcode the input/output with something like this:

 

What is the outcome you want, because there are many transformers in FME that can do this and its probably better to use them.

Cheers,

Todd

Hi Todd,

Thanks for the response. It works like a charm. I'm after mid points of polylines. I tried using snipper to get mid points but it only works well with single lines and drops where multipolylines.But when I use ArcPy to do the same, it creates points for all polylines.

Cheers

Wesley

todd_davis
Influencer
Forum|alt.badge.img+23
  • Influencer
  • October 10, 2019

Hi Todd,

Thanks for the response. It works like a charm. I'm after mid points of polylines. I tried using snipper to get mid points but it only works well with single lines and drops where multipolylines.But when I use ArcPy to do the same, it creates points for all polylines.

Cheers

Wesley

In FME you can use the deaggregator before the snipper, breaking those multi-part geometries into single lines.

Cheers,

Todd


angwan
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • October 10, 2019

In FME you can use the deaggregator before the snipper, breaking those multi-part geometries into single lines.

Cheers,

Todd

Hi Todd,

Thanks for the suggestion. Hey, if i want to overwrite output in python caller, how can I go about that.

 

Cheers

Wesley