Feature Envelope to Polygon (Data Management) (ArcInfo only) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Creates polygons from the envelopes of each feature in the input feature class. An envelope is a rectangular area that covers a feature's geometry.
Learn more about how Feature envelopes to polygons works
Illustration
Usage tips
Valid inputs are line, polygon, and annotation feature classes.
When the envelope of a feature is an invalid polygon (height or width is zero), no polygon will not be written to the output.
The multipart parameter will have no effect on the result when the input is a singlepart feature.
The following environment settings affect this tool: Coordinate system, Extent, XY Tolerance, Z Tolerance, M Tolerance, XY Resolution, Z Resolution, M Resolution, Output XY domain, Output Z domain, Output M domain, Output has M values, Output has Z values, Default Z value, Configuration keyword, Output Spatial Grid.
Command line syntax
An overview of the Command Line window
FeatureEnvelopeToPolygon_management <in_features> <out_feature_class> {SINGLEPART | MULTIPART}
Parameter | Explanation | Data Type |
<in_features> |
The features whose envelopes will be converted to polygon features. |
Feature Layer |
<out_feature_class> |
The feature class that will contain the polygons. |
Feature Class |
{SINGLEPART | MULTIPART} |
Choose what multipart input features will produce.
|
Boolean |
FeatureEnvelopesToPolygons d:\workspace\myGdb.mdb\feats d:\workspace\myGdb.mdb\fc_envelopes SINGLEPART
Scripting syntax
About getting started with writing geoprocessing scripts
FeatureEnvelopeToPolygon_management (in_features, out_feature_class, single_envelope)
Parameter | Explanation | Data Type |
in_features (Required) |
The features whose envelopes will be converted to polygon features. |
Feature Layer |
out_feature_class (Required) |
The feature class that will contain the polygons. |
Feature Class |
single_envelope (Optional) |
Choose what multipart input features will produce.
|
Boolean |
# Create the Geoprocessor import arcgisscripting gp = arcgisscripting.create() # Set the workspace gp.workspace = "c:\ws.mdb" try: gp.FeatureEnvelopeToPolygon("province", "province_envelopes") except: print "An error occurred while running Feature Envelope To Polygon" print gp.GetMessages(2)