sunsilk10

Add Feature class to Terrain

Discussion created by sunsilk10 on Mar 28, 2018

Hi I am trying to script creating/building a terrain.I am using ArcGIS Desptop 10.2.2

I can create the terrain and add pyramid levels. However it is failing on adding the multipoint feature class to the terrain,

therefore I can't build the terrain. See error message below when run in python window.

 

This works ok when using the New Terrain Wizard. Any ideas?

I have looked at the post in Adding a feature class to terrain in python but there doesn't seem to have any solution for this either.

 

arcpy.env.workspace = r'C:\Lidar\Height\output\HEIGHT.gdb\TerrainFDS2'
>>> params = "terrain_pts SHAPE masspoints 1 true false points_embed <None> false"
>>> arcpy.AddFeatureClassToTerrain_3d (r"C:\Lidar\Height\output\HEIGHT.gdb\TerrainFDS2\my_terrain", params)
Runtime error
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\ddd.py", line 1895, in AddFeatureClassToTerrain
raise e
RuntimeError: Object: Error in executing tool

Outcomes