Question

CUT and FILL with arcpy in FME

  • 3 January 2021
  • 0 replies
  • 10 views

 

I want to calculate CUT and FILL volume between"Existing DEM raster" and "Planned DEM raster" using Arcpy CUT and Fill geoprocessing tool script in FME Pythoncaller Transformer (FME DESKTOP 2017.1.2.0).But I am getting below error

 

Python Exception <ExecuteError>: Failed to execute. Parameters are not valid.

ERROR 000865: Input before raster surface: elevation01 does not exist.

ERROR 000865: Input after raster surface: elevation02 does not exist.

Failed to execute (CutFill).

 

Error executing string `import fme

import fmeobjects

import arcpy

 

def processFeature(feature):

 

dataset = feature.getAttribute('_dataset')

arcpy.env.workspace = dataset

 

# Set local variables

inBeforeRaster = "elevation01"

inAfterRaster = "elevation02"

outRaster = "D:/CutFill"

zFactor = 0.5

 

# Check out the ArcGIS 3D Analyst extension license

arcpy.CheckOutExtension("3D")

 

# Execute CutFill

arcpy.CutFill_3d(inBeforeRaster, inAfterRaster, outRaster, zFactor)'

Factory proxy not initialized

f_76(PythonFactory): PythonFactory failed to process feature

A fatal error has occurred. Check the logfile above for details

Clipper_Raster(RasterClippingFactory): A fatal error has occurred. Check the logfile above for details.

 

Kindly guide to me to find the issue in above script .

 

Thanks

Venu

 

 


0 replies

Be the first to reply!

Reply