Convert Lake Bathymetry AML to Model Builder

1891
0
08-22-2012 01:25 PM
CheranWilliams
New Contributor
We have used the following lake bathymetry AMLs for years but we want to get away from coverages and AMLs so we can use a geodatabase and run a model. We are having trouble finding the tools to recreate the functions within the AML. We need to set the various weed tolerance and proximal tolerance for the 4 TINs we generate from a point file and perimeter file. We also use the AML to generate contours from those TINs so we need to set the subdivision degree and weed tolerance for the contours. Once the contours are generated we edit them to smooth the grain. We thought we found the correct tool ???Smooth Line???, but receive errors so if there is a better tool please let us know.
Thank you!
GIS Team

AML to Generate 4 TINs:
w P:\Lake_Stream_Assessments\2012_Lake_Stream_Assessments\Rivers\Double_Branch\GIS\GIS2
/* Create a tin and set weed and proximal tolerance
/*CREATETIN <out_tin> {weed_tolerance} {proximal_tolerance} {z_factor} {bnd_cover | xmin ymin xmax ymax} {device}
createtin db2tin 5 50

/* Specify the point coverage
/*COVER <in_cover> {POINT | LINE | POLY} {spot_item | spot_value} {sftype_item | sftype} {densify_interval} {logical_expression | select_file} {weed_tolerance}
cover db2pnt point Depth mass

/* Specify the perimeter coverage
cover db2per poly 0 7
end

/* Create contours from TIN
/*TINCONTOUR <lakenameTIN> <lakenameCON> 2 0 # <subdivision degree> <weed tolerance>
tincontour db2tin db2con 2 0 # 5 5


/* Create second TIN using different proximal tolerance
createtin db2tin2 5 75
cover db2pnt point Depth mass
cover db2per poly 0 7
end

/* Create second contour from TIN
tincontour db2tin2 db2con2 2 0 # 5 5

/* Create third TIN using different proximal tolerance
createtin db2tin3 5 100
cover db2pnt point Depth mass
cover db2per poly 0 7
end

/* Create third contour from TIN
tincontour db2tin3 db2con3 2 0 # 5 5

/* Create fourth TIN using different proximal tolerance
createtin db2tin4 5 125

cover db2pnt point Depth mass
cover db2per poly 0 7
end

/* Create fourth contour from TIN
tincontour db2tin4 db2con4 2 0 # 5 5


AML to Edit Contour Lines to Smooth the Grain (Note, this AML will run then you enter some info manually like Show Grain then use that number to set the grain to smooth the contours)

w P:\Lake_Stream_Assessments\2012_Lake_Stream_Assessments\Rivers\Double_Branch\GIS
ae
disp 9999
edit dbccon
de arcs on
de node error on
nodecolor dangle 6
bc dbcper 2
be arcs on
ef arc
nodesnap closest 2
intersectarcs all
draw
select all
Type show grain to for the # of the grain (how jagged the lines are)
Type grain (#) to reduce the look of jagged edges. On moderate original grain number reduce this by half, but all grain numbers should ultimately be below 10
Type spline to smooth these lines out
Type save all and y
Type end to end the tool
Tags (2)
0 Kudos
0 Replies