1

I am creating a Python script in a toolbox in ArcGIS 10.0. When the input dataset is a raster, I can use:

myRaster = arcpy.Raster('elevation')

What should I do when the input dataset is a TIN? Is there an equivalent for TIN datasets?

I only have found "CreateTin_3d", but I dont want to create another TIN.

closed as unclear what you're asking by PolyGeo Feb 13 '15 at 8:59

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    My understanding is that arcpy.Raster defines the raster as an object rather than a dataset and that things like Feature Class (points) and TINs don't require this type of declaration because they are automatically an object. I've never run into a problem with just myTIN = "elevation_TIN". Are you encountering a specific error? – jbosq Feb 12 '15 at 16:32
  • 1
    What function/procedure are you undertaking? When running a tool just supply the full path, or if the workspace is set to where the tin is then just the name. Same as for feature classes. Rasters are special, but only since arcpy.sa. before that they weren't; scripts prior to v10 use full path to raster rather than a raster object for input/output, so don't use the arcpy.Raster object as an example of loading a dataset... look more closely at functions like Clip or Append on how to treat non-raster datasets. – Michael Stimson Feb 12 '15 at 21:50