AnsweredAssumed Answered

Arcpy - Calculate volume using CutFill tool

Question asked by droneanalysis on Feb 9, 2017
Latest reply on Feb 12, 2017 by droneanalysis

Hi guys,

Currently i'm implementing a function to calculate volume  of  a polygon using CutFill tool. Here is my step:

# I clip the raster with polygon

arcpy.Clip_management(Elevation_Raster, "#", clipped_raster ,Input_Polygon_Shp, "0", "ClippingGeometry")

# I convert the clipped raster to multipoint in order to create TIN

arcpy.RasterToMultipoint_3d(clipped_raster, points, "", "KERNEL", "MEAN", "", "")

 

# I create TIN from multipoint since it then convert it back to raster to "flatten" the surface

arcpy.CreateTin_3d(tin, sr, points, "Delaunay")

arcpy.TinRaster_3d(tin, raster_tin, "FLOAT", "NATURAL_NEIGHBORS", TinRastCellSize, "")

 

# Finally i run the CutFill tool

outCutFill = CutFill(clipped_raster, raster_tin, 1)

 

But the result is not correct. Did i miss something or can you guys show me the way to get volume using CutFill tool? Thank you alot

Outcomes