I'm trying to create a TIN from contour data. My program will actually create an empty TIN, but it will still give me an error. Below is my code:
import arcpy arcpy.env.workspace = r"C:\Users\Aliza\Desktop\GIS Programming Fundamentals\Final_Project\Contours" arcpy.CheckOutExtension("3D") out_tin = "SampleTinssas" height_field = "Elevation" in_features = r"C:\Users\Aliza\Desktop\GIS Programming Fundamentals\Final_Project\Contours\Site_37_Contours.shp" sr = arcpy.Describe(in_features).spatialReference arcpy.CreateTin_3d(out_tin, sr, "Site_37_Contours.shp", "DELAUNAY") arcpy.CheckInExtension("3D")
I know that the in_features portion of the tool is supposed to be in the form of a value table, but I have no clue how to format that. I know that my height needs to be included, but again, I have no idea where to start with that.
Below is my error message:
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" C:/Users/Aliza/PycharmProjects/finaltest.py Traceback (most recent call last): File "C:/Users/Aliza/PycharmProjects/finaltest.py", line 8, in <module> arcpy.CreateTin_3d(out_tin, sr, "Site_37_Contours.shp", "DELAUNAY") File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ddd.py", line 2922, in CreateTin raise e File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ddd.py", line 2919, in CreateTin retval = convertArcObjectToPythonObject(gp.CreateTin_3d(*gp_fixargs((out_tin, spatial_reference, in_features, constrained_delaunay), True))) File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 506, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: ERROR 999999: Error executing function. Failed to execute (CreateTin).
Process finished with exit code 1