Skip to main content
Question

CUT and FILL with arcpy in FME


venu
Contributor
Forum|alt.badge.img+5
  • Contributor

 

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!

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