Open Table of Contents

ET GeoWizards Toolbox

Features To Rectangles
(Go to the main page of the function)

Creates a bounding rectangle from each feature in the input feature class. The rectangles are aligned with the longest side of the original geometry. Attributes of the original features are transferred to the resulting polygons.

Command line syntax

ET_GPFeaturesToRectangles <input_dataset> <out_feature class><Alignment>

Parameters

Expression Explanation
<input_dataset> A  Polyline or Polygon feature class or feature layer
<out_feature_ class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
{Alignment} A string defining the orientation of the rectangles to be created
  • "Longest_Segment" - aligns the rectangle along the longest segment of the polygon boundary
  • "Longest_Axis" - aligns the rectangle along  the longest axis of the original polygons
  • "Min_Area" - Minimum area rectangle

Scripting syntax

ET_GPFeaturesToRectangles (input_dataset,  out_feature_ class, Alignment )

See the explanations above:
<> - required parameter
{} - optional parameter