Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Bug with TIN properties (arcpy) ?

$
0
0
Hello everyone,

I'm stuck with an annoying error, when I try to make use of TIN properties in the Python window in ArcCatalog, I have the following message:

Quote:

AttributeError: DescribeData spatialReference method does not exist
(The original output is in french, the actual english version may differ)

Here is the very simple code I use:

Code:

import arcpy
from arcpy import env
env.workspace = "C:/temp/"
tin = "C:/temp/test"
SR = arcpy.Describe(tin).spatialReference

Does anyone see an obvious mistake here? I'm VERY new to python scripting in ArcGIS :)

In ArcGIS 10.1 Help (http://resources.arcgis.com/en/help/...0000000r000000) there is the following statement :

Quote:

The Describe function returns the following properties for TINs. Dataset Properties are also supported.
A TIN returns a dataType of "Tin".
I'm running ArcGIS Desktop Basic 10.1 (SP1) on Windows 7 Pro 64-bit ; and I've manually added C:\Python27\ArcGIS10.1 in PATH.

Best regards

Viewing all articles
Browse latest Browse all 2485

Trending Articles