AnsweredAssumed Answered

Instantiate TIN as Layer object - arcpy

Question asked by marty9 on Mar 16, 2017
Latest reply on Mar 16, 2017 by iamurray

Hello! the following commands works with shapefiles and rasters, but i cannot manage with a TIN.

Do you know the reason?

 

tin = C:\PROJECT\mytin

arcpy.CreateTin_3d(tin, CoordSys, Input_Features)  # coord sys and input defined above

mylayer = arcpy.mapping.Layer('{0}'.format(tin))

 

I get an error: invalid data source.

So i tried to save the TIN as a .lyr files first with arcpy.SaveToLayerFile_management(tin), but i get the same error.

 

With rasters and shapefiles i just give in input the full path of the file, but about the tin?

 

Thank you!

Outcomes