Skip to main content

Python utilities for use with Esri ArcGIS Desktop, ArcGIS Pro software

Project description

# README #

### What is this repository for? ### * A collection of (mostly) arcpy related utilities for use within ArcGIS Desktop (Python 2.7), or ArcGIS Pro (Python 3) as well where possible. Shortcuts for accessing elements of a map document, performing various data discovery tasks on a table or gdb

### How do I get set up? ###

  • To install the utilities:

  • pip install arc_utils

  • Clone the repo to your machine and add the path to the python install https://docs.python.org/2/tutorial/modules.html#the-module-search-path

  • Optionally, you can copy the folder to the site-packages in the ESRI python install directory, or add a .pth file to the site-packages folder pointing to the clone directory.

To use the utilities:

  • in the python window in ArcMap/ArcCatalog/Pro

`python import arc_utils as au `

  • typing au. will now reveal the modules and functions available to you if you have autocomplete on

  • Depends on arcpy (only available with Esri license)

### Example usage ###

import arc_utils as au

tbl = au.table.TableObj(path to featureclass)

# list all fields

print(tbl.fields)

mxd_doc = au.mxd.MxdObj(“CURRENT”)

mxd_doc.layer_names_array >> [‘layer1’,’layer2’]

pro_doc = au.aprx.AprxObj(“CURRENT”)

pro_doc.maps >> [<arcpy._mp.Map object at 0x000001A4AECBF108>, <arcpy._mp.Map object at 0x000001A4AEBB6608>]

pro_doc.maps[0].name >> ‘Map’

### Contribution guidelines ###

Contributions welcomed, this is a starting point for various utilities that I think could be useful within Arc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arc_utils-1.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

arc_utils-1.1-py2.py3-none-any.whl (17.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file arc_utils-1.1.tar.gz.

File metadata

  • Download URL: arc_utils-1.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.11.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/2.7.18

File hashes

Hashes for arc_utils-1.1.tar.gz
Algorithm Hash digest
SHA256 0d65a8ffbb965e45700d6f4a06c394ad32071d6b3c71a2f31f83a12c51e07bb4
MD5 821749bde4eb898612697f165fc11169
BLAKE2b-256 351c66244f3313e241608c0260af0eedc47af624b9359e249821a21a5693735c

See more details on using hashes here.

File details

Details for the file arc_utils-1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: arc_utils-1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.11.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/2.7.18

File hashes

Hashes for arc_utils-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b77cf9d61d18f31bbb3d0fe28894b5d9cba99ace7120c4ae053af0fefa5f4bac
MD5 4ae8683e2717e92eb1a1d3c86df63689
BLAKE2b-256 223104de9c24fbb90af877553a861bbb595d2a1be8ac3841f3b53f6439f502dd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page