To join shapefiles with python code

591
4
Jump to solution
11-28-2020 07:37 AM
SevincTaghiyeva
New Contributor

Hi,

Combining data in Arcgis can take a long time. Is there an easier way to do this with python code?

Thanks in advance

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

Use the tools in arctoolbox.  "python code" effectively accesses the same code-base as the tools do and would provide no speed advantages.

You can examine the code snippets associated with the tools in the help files for both arcmap and arcgis pro.

For example

Join Field (Data Management)—ArcGIS Pro | Documentation

scroll to the bottom... no hidden python magic, just a call to the tool itself after the parameters are defined.


... sort of retired...

View solution in original post

4 Replies
DavidPike
MVP Frequent Contributor

what do you mean by combine or join? i.e. are you merging shapefiles, joining by attributes, joining by location (spatial join)?

SevincTaghiyeva
New Contributor

yes merging shapefiles, joining by attributes

0 Kudos
DanPatterson
MVP Esteemed Contributor

Use the tools in arctoolbox.  "python code" effectively accesses the same code-base as the tools do and would provide no speed advantages.

You can examine the code snippets associated with the tools in the help files for both arcmap and arcgis pro.

For example

Join Field (Data Management)—ArcGIS Pro | Documentation

scroll to the bottom... no hidden python magic, just a call to the tool itself after the parameters are defined.


... sort of retired...
SevincTaghiyeva
New Contributor

thanks

0 Kudos