Open Table of Contents

Sort Shapes

Go to ToolBox Implementation Go to .NET Implementation

Sorts the features of a feature layer according to user specified fields and order methods.



How to use:


ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPSortShapes <input_dataset> <out_feature class> <Field {Sort Method};Field {Sort Method}...>


Expression Explanation
<input_dataset> A 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)
<Field {Sort Method};Field {Sort Method}...> A list of the fields to be transferred and the sort method for each field.  Note: If the Sort Method string is not "Ascending" or "Descending" (case sensitive) a descending method will be used.

Scripting syntax

ET_GPSortShapes (input_dataset, out_feature class, sort fields)

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

.NET implementation
(Go to TOP)

SortShapes(pInFC As IFeatureClass, sOutFName As String, sortDictionary As Dictionary(Of String, String)) As IFeatureClass

Copyright Ianko Tchoukanski