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

Arcpy.mapping.layer() help files in 10.0 and 10.1

$
0
0
Is it just me, or is the help entry for arcpy.mapping.Layer() quite misleading?

It gives the distinct impression that you can only use this function on .lyr files, but actually you can pass a shapefile as a path and it works just fine.

So why does it imply that you can only reference a layer file (.lyr) as opposed to a map layer which could be one of any number of formats? Does anyone else agree that this entry could be clearer?

Viewing all articles
Browse latest Browse all 2485

Trending Articles