Select to view content in your preferred language

Arcpy - Calculate volume using CutFill tool

2261
10
02-09-2017 06:25 PM
neolab
by
Deactivated User

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

0 Kudos
10 Replies
neolab
by
Deactivated User

Thank you very much Mr.Patterson,

I will try to find another way

0 Kudos