Go to ET GeoWizards 12.x User Guide

Move Shapes

Go to ToolBox Implementation

Moves the features of a feature layer according to user specified translation vector .

Inputs:

Outputs:

Notes:

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPMoveShapes<input_dataset> <out_feature_class> {from_X} {from_Y}  {to_X} {to_Y} {from_to_point_dataset} {Delta_X} {Delta_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)
{from_X} A Double - X coordinate of the origin point.
{from_Y} A Double - Y coordinate of the origin point.
{to_X} A Double - X coordinate of the destination point.
{to_Y} A Double - Y coordinate of the destination point.
{from_to_point_dataset} A Point feature class or feature layer. It must have at least two points - the first point will be used as origin and the second point will be used as destination.
{Delta_X} A Double - Movement in X direction
{Delta_Y} A Double - Movement in Y direction

Scripting syntax

ET_GPMoveShapes(input_dataset, out_feature_class,from_X,from_Y, to_X, to_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\\moved"
arcpy.ET_GPMoveShapes(input_dataset, result, 0.00, 0.00,1.00,1.00)
Copyright © Ianko Tchoukanski