Skip to main content
Question

How to configure pythoncaller to dissolve with arcpy?

  • December 21, 2016
  • 4 replies
  • 91 views

Forum|alt.badge.img

Hey!

 

Can someone help me to set up a python script in Pythoncaller.

 

I don´t konw how to define the outport so the workspace can continue with the dissolved data.

I have tried this without result..:

def processFeature(feature):

 

arcpy.Dissolve_management(feature, Output_Feature_Class, "feature.getAttribute('mergeid')", "", "MULTI_PART", "DISSOLVE_LINES")

I need to use the arcmap dissolver because the FME dissolver makes some polygons disapear with my big dataset!

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

david_r
Celebrity
  • December 21, 2016

You have to first write out the feature class in FME, execute arcpy and then re-read the feature class back into FME. You could accomplish this by chaining several workspaces.

You cannot use the PythonCaller as if it were a transformer with arcpy, unfortunately.


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • December 21, 2016

You have to first write out the feature class in FME, execute arcpy and then re-read the feature class back into FME. You could accomplish this by chaining several workspaces.

You cannot use the PythonCaller as if it were a transformer with arcpy, unfortunately.

I have successfully used featureWriter -> PythonCaller with Arcpy -> featureReader, no chaining of workspaces necessary.

Forum|alt.badge.img
  • Author
  • December 21, 2016

You have to first write out the feature class in FME, execute arcpy and then re-read the feature class back into FME. You could accomplish this by chaining several workspaces.

You cannot use the PythonCaller as if it were a transformer with arcpy, unfortunately.

Ok. Thanks for the answer.

david_r
Celebrity
  • December 21, 2016
I have successfully used featureWriter -> PythonCaller with Arcpy -> featureReader, no chaining of workspaces necessary.
Ah, yes, the FeatureWriter might be an option, I agree.