An equivalent shift tool for vectors as the one available for rasters,

2615
14
07-14-2019 10:10 AM
JamalNUMAN
Legendary Contributor

An equivalent shift tool for vectors as the one available for rasters,

 

I couldn’t figure out if there is an equivalent shift tool for vectors as the one available for rasters. I’m aware of the “move” tool available in the editor toolbar, but what I need here is a tool that can be added to the model builder

 

Thank you

 

Jamal

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
14 Replies
JasonSchneider4
New Contributor

hot tip! 

AhmadSALEH1
Occasional Contributor III

Majdoleen Awadallah

it looks like you have a space somewhere and its hard to tell using Notepad ++. as Dan said try to use python IDE like spyder or pyscripter it will help you to find the errors and fix them in real time.

the attached tool works in ArcMap

MajdoleenO_A__Awadallah
Occasional Contributor III

Thank you Ahmad SALEH, it works like a charm.

JamalNUMAN
Legendary Contributor

How to choose where to store the output?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
LanceCole
MVP Regular Contributor

Jamal,

Based upon your script noted in this thread, you are using an update cursor that will apply to the original feature data when cursor.updateRow is called in line 29.  There is not an option to save the data in another feature as written.  This could be added or you can add additional code to make a copy of the feature class then apply the adjustment to the copy rather then the original data.

Copy Features—Data Management toolbox | ArcGIS Desktop