Skip to main content
Question

How to configure pythoncaller to dissolve with arcpy?

  • December 21, 2016
  • 4 replies
  • 21 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!

4 replies

david_r
Evangelist
  • 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+28
  • Contributor
  • December 21, 2016
david_r wrote:

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
david_r wrote:

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
Evangelist
  • December 21, 2016
jdh wrote:
I have successfully used featureWriter -> PythonCaller with Arcpy -> featureReader, no chaining of workspaces necessary.
Ah, yes, the FeatureWriter might be an option, I agree.

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings