automated hydrographic survey modeling & sheet production...
TRANSCRIPT
US Army Corps of Engineers
BUILDING STRONG®
St. Louis District
1
Ryan Jones
Geographer/GIS Developer
USACE
June 28, 2016
Automated Hydrographic Survey Modeling & Sheet Production Tool
BUILDING STRONG®
St. Louis District
BUILDING STRONG®
What does it do?
BUILDING STRONG®
How does it do it?
Required!
BUILDING STRONG®
How does it do it?
BUILDING STRONG®
How does it do it?
BUILDING STRONG®
How does it do it?
• Convert .XYZ file into points
Arcpy.PointFileInformation_3d(file,
out_feature_class, “XYZ”)
- Determines point spacing
Arcpy.ASCII3DToFeatureClass_3d(file
, “XYZ”, out_terrain_feature_class,
“MULTIPOINT”, “”, “”, pointSpacing)
- Multipoint for large amount of points
BUILDING STRONG®
How does it do it?
• Create Elevation TIN
Arcpy.CreateTin_3d
(out_tin,sr,out_terrain_feature_class +
“ Shape.Z masspoints”, “DELAUNAY”)
- Uses output from
Arcpy.ASCII3DToFeatureClass_3d
Arcpy.DelineateTinDataArea_3d
(out_tin, max_edgelength, “ALL”)
- Point spacing determines edge
length
BUILDING STRONG®
How does it do it?
• Create Elevation Terrain
Arcpy.CreateTerrain_3d
(in_feature_dataset, terrainName,
pointSpacing,””,””,”WINDOWSIZE”,
”ZMIN”)
Arcpy.AddTerrainPyramidLevel_3d
(in_terrain, “WINDOWSIZE”,
scalefactor)
Arcpy.AddFeatureClassToTerrain_3d
(in_terrain, inFeatures)
Arcpy.BuildTerrain_3d
(in_terrain, “UPDATE_EXTENT”)
BUILDING STRONG®
How does it do it?
• Create Elevation Contours
Arcpy.SurfaceContour_3d
(in_terrain, in_contours, 1)
BUILDING STRONG®
How does it do it?
• Create LWRP TIN
Arcpy.SurfaceDifference_3d
(in_terrain, in_reference_surface,
out_LWRP, 0, 0, “”,””,
out_LWRP_folder, out_LWRP_name)
- Difference between Elevation Terrain
and reference surface.
BUILDING STRONG®
How does it do it?
• Create LWRP Terrain
Arcpy.CreateTerrain_3d
(in_feature_dataset, terrainName2,
pointSpacing,””,””,”WINDOWSIZE”,
”ZMIN”)
Arcpy.AddTerrainPyramidLevel_3d
(in_terrain2, “WINDOWSIZE”,
scalefactor)
Arcpy.AddFeatureClassToTerrain_3d
(in_terrain2, inFeatures2)
Arcpy.BuildTerrain_3d
(in_terrain2, “UPDATE_EXTENT”)
BUILDING STRONG®
How does it do it?
• Create LWRP Contours
Arcpy.SurfaceContour_3d
(out_LWRP_tin, LWRP_in_contours,
1)
BUILDING STRONG®
How does it do it?
• Create TIFF MXD
Arcpy.mapping.MapDocument
(mapDocumentTemplateLWRP)
Mxd.saveACopy(folderlocationRoot +
os.sep + “arc” + os.sep +
newFileName + os.sep +
newFileName2 +
“_LWRP_TIFF_ONLY.mxd”)
- TIFF used in final PDF to reduce file
size.
BUILDING STRONG®
How does it do it?
• Create Layout MXD
Mxd.saveACopy(folderlocationRoot +
os.sep + “arc” + os.sep +
newFileName + os.sep +
newFileName2 +
“_LWRP_LAYOUT_VIEW.mxd”)
Layers:
Structure Labels, Contours, AOI Area,
Mapgrids, Gages, River Miles, Dikes,
Weirs, Bankline, AOI TIFF, Imagery
BUILDING STRONG®
How does it do it?
• Export to PDF
Arcpy.mapping.ExportToPDF
(mxd, out_pdf, “PAGE_LAYOUT”, 0,
0, dpi, “BEST”, “RGB”, True,
“ADAPTIVE”,
“RASTERIZE_PICTURE”, False,
True, “NONE”, True)
BUILDING STRONG®
BUILDING STRONG®
Why does it do it?Method # of Surveys Proc Time Total Time
Individual 140 x 3 hours 420 hours
140 x 10 minute 24 hours
BUILDING STRONG®
Questions?
(314) 331-8390