describe arcpy

Describe arcpy

Describes a describe arcpy element and returns a Describe object with multiple properties, such as data type, fields, indexes, describe arcpy, and many others. Its properties are dynamic, meaning that depending on the data type described, different describe properties will be available for use.

I created a new empty feature class and then appended features into it from another feature. When I zoomed to that new feature class, it zoomed way out as if the extent was whacked; and it was. So I used the recalculate feature class extent tool and it was still whacky. Then I recalculated the the spatial index and it zooms correctly. Go to Solution.

Describe arcpy

Describes a data element and returns a Describe object with multiple properties, such as data type, fields, indexes, and many others. Its properties are dynamic, meaning that depending on the data type described, different describe properties will be available for use. Describe properties are organized into a series of property groups. Any particular dataset will acquire the properties of at least one of these groups. For example, if describing a geodatabase feature class, you can access properties from the Geodatabase Feature Class , Feature Class , Table , and Dataset property groups. All data, regardless of the data type, will always acquire the generic Describe object properties. Many data types include properties from other property groups. See arcpy. Describe , which returns the same information but as a dictionary. In some cases, the object returned by Describe will not have all of the properties that are documented for it. For example, the Describe object for a layer in a map will not have the layer property set. That property only exists if you describe a.

Describe arcpy you try to access a property that a Describe object does not have, describe arcpy, it will return either an error or an empty value None0 or -1, or an empty string. That property only exists if you describe a. See arcpy.

.

The Describe function returns a Describe object with multiple properties, such as data type, fields, indexes, and many others. Its properties are dynamic, meaning that depending on what data type is described, different describe properties will be available for use. Describe properties are organized into a series of property groups. Any particular dataset will acquire the properties of at least one of these groups. All data, regardless of the data type, will always acquire the generic Describe Object properties.

Describe arcpy

Geoprocessing tools work with all types of data, such as geodatabase feature classes, shapefiles, rasters, tables, topologies, and networks. Each piece of data has particular properties that can be accessed and used to control the flow of a script or used as the parameters of a tool. For example, the output feature type of the Intersect tool is dependent on the shape type of the data being intersected, that is, point, line, or polygon. When the Intersect tool runs in a script on a list of input datasets, you must be able to determine the shape types of the input datasets so the correct output shape type can be set. You can use the arcpy. Describe and arcpy. Describe functions to determine the shape types of all the input datasets. The arcpy. Describe function returns a Describe object, with multiple properties, such as data type, fields, indexes, and many others. Its properties are dynamic, meaning that depending on what data type is described, different Describe properties are available for use.

How tall is lenny kravitz

Describe , which returns the same information but as a dictionary. Many data types include properties from other property groups. Some of the returned object's properties will contain literal values or objects. This is only necessary when naming conflicts exist, for example, if a geodatabase contains a feature dataset FeatureDataset and a feature class FeatureClass with the same name. Summary Describes a data element and returns a Describe object with multiple properties, such as data type, fields, indexes, and many others. Returns an object with properties detailing the data element described. Post Reply. In this case, the data type is used to clarify which dataset will be described. Any particular dataset will acquire the properties of at least one of these groups. Code sample Describe properties example stand-alone script The following stand-alone script displays layer and describe object properties from a layer set by a script parameter. I have my own version of an Advent Calendar on my desk. View solution in original post.

Describes a data element and returns a Describe object with multiple properties, such as data type, fields, indexes, and many others. Its properties are dynamic, meaning that depending on the data type described, different describe properties will be available for use. Describe properties are organized into a series of property groups.

For example, the Describe object for a layer in a map will not have the layer property set. Its properties are dynamic, meaning that depending on the data type described, different describe properties will be available for use. That should just about do it Discussion Many data types include properties from other property groups. Tags: calculate feature class extent. If you are uncertain of a particular property, you can use the Python hasattr function to check. Debate Many data types include properties from other property groups. That property only exists if you describe a. The specified data element or geoprocessing object to describe. Member Introductions. Describe properties are organized into a series of property groups. That property only exists if you describe a. Tags 3. Sign In. Turn on suggestions.

3 thoughts on “Describe arcpy

  1. It is a pity, that now I can not express - it is compelled to leave. I will be released - I will necessarily express the opinion.

Leave a Reply

Your email address will not be published. Required fields are marked *