Go to ET GeoWizards 12.x User Guide
Rotates the features of a feature layer according to user specified rotation point and angle .
Inputs:
Outputs:
Notes:
ToolBox
implementation
(Go to TOP)
Command line syntax
ET_GPRotateShapes<input_dataset> <out_feature_class><input_dataset> <out_feature_class> {rotation_angle} {origin_point_dataset} {Origin_X} {Origin_Y}
Parameters
Expression | Explanation |
---|---|
<input_dataset> | A Point 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) |
{rotation_angle} | A Double - Rotation angle in Degrees - positive values will rotate the features counterclockwise and negative - clockwise |
{origin_point_dataset} | A Point feature class or feature layer. It must have at least one point to be used as origin of rotation. |
{Origin_X} | A Double - X of the origin point to be used for rotation |
{Origin_Y} | A Double - Y of the origin point to be used for rotation |
Scripting syntax
ET_GPRotateShapes(input_dataset, out_feature_class,rotation_angle,"", Origin_X, Origin_Y)
See the explanations above:
<> - required parameter
{} - optional parameter
Example Python script:
import arcpy arcpy.ImportToolbox("C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx") arcpy.gp.toolbox = "C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx") input_dataset = "C:\\data\\pg1.shp" result = "C:\\data\\fgdb_test.gdb\\rotated" arcpy.ET_GPRotateShapes(input_dataset, result, 45, "",0.00,0.00) |
Copyright © Ianko Tchoukanski |