ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

A quick tour of creating tools with Python

Geoprocessing system tools (those installed with ArcGIS) are designed to perform one small but essential operation on geographic data. Using ModelBuilder or Python, you execute these geoprocessing tools in a sequence, feeding the output of one tool to the input of another. The script you create may be an essential part of your workflow—a task you need to repeat again and again.

Scripts that you create can be executed with one of two basic methods: outside ArcGIS and within ArcGIS.

  • Outside ArcGIS means that the script is executed from the operating system command prompt, as shown below, or within a development application, such as PythonWin. Scripts executed in this manner are referred to as stand-alone scripts.

    Running a script from a cmd window.

    E:\ScriptLib>transform_data.py "e:\data\d052573
    
  • Within ArcGIS means you create a script tool inside a toolbox. A script tool is like any other tool—it can be opened and executed from the tool dialog box, used in models and the Python window, and called from other scripts and script tools. Script tool in Catalog window

Geoprocessing tools can be created from Python in two ways: standard toolboxes, (Toolbox) where you connect a Python script tool to a toolbox using a wizard, and Python toolboxes (Python Toolbox), which are an ASCII file written entirely with Python code. To learn more about the differences between custom and Python toolboxes, see Comparing custom and Python toolboxes.

Related Topics

  • What is a script tool?
  • What is a Python toolbox?
  • Comparing custom and Python toolboxes
  • Understanding script tool parameters
  • Understanding validation in script tools
  • Understanding messages in script tools
  • Understanding the progress dialog box in script tools
  • What is ArcPy?
  • What is Python?
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal