Question

Custom Transformer "ArcGISDissolver"

  • 22 January 2018
  • 1 reply
  • 0 views

Badge

Hi,

I have dataset which consists of about 40 millions parcels. Some of them have the same identifier and I would like to join them into one area (with dissolve lines). I would like to use custom transformer which is very similar to https://knowledge.safe.com/articles/47216/using-arcpy-for-fme-feature-processing.html. I have FeatureWriter, PythonCaller and FeatureReader Transformer and I have a problem with keeping attributes after FeatureWriter transformer because in the PythonCaller Transformer I would like to use Attribute Accumulation (…”AREA SUM; CITY FIRST; POSTCODE FIRST; COUNTRY FIRST”…). I will need these information as a final score. Maybe is here someonebody who could help me?


1 reply

Badge

Hi,

Got the right format, Just change the last bit of the python code from :

arcpy.Dissolve_management(inFeatures, outFeatureClass, dissolveFields, "", "MULTI_PART", "DISSOLVE_LINES")

to

arcpy.Dissolve_management(inFeatures, outFeatureClass, dissolveFields, "AREA SUM; CITY FIRST; POSTCODE FIRST; COUNTRY FIRST", "MULTI_PART", "DISSOLVE_LINES")

as shown in:

http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/dissolve.htm

Reply