Category: Python

Choosing the right Python Integrated Development Environment


This blog is solely intended to be used as a reference to learn which Python integrated development environment (IDE) might be best for you or your organization. Since there are many IDEs to choose from, picking the right one can … Continue reading

Posted in Migrate, Python | Tagged | 11 Comments

Invitation to participate in an Esri software Usability Study at the User Conference

The Esri development team would like to invite you to participate in a moderated and recorded usability study of a new application for GIS professionals currently under development.

Who we’re looking for…

  • Existing ArcGIS for Desktop users
  • ArcGIS Online and App users interested in professional GIS software
  • Users of Esri Solutions (Local Government, Water Utilities, Land Records, 3D cities and campuses)
  • Users with varying degrees of experience who author maps,  analyze \ edit data, and manage GIS content

In total, we’re looking for 30 committed testers.

How it works…
Our sole intent and goal for this study is to assess the usability of our next generation professional desktop software; we want you to test our software, we’re not testing your computer, nor ArcGIS skills.

To consider you as a usability tester, we require that you are registered and approved by your employer to attend Esri User Conference and complete a pre-screening questionnaire—details below. Your time in the test lab is about 40 minutes.

Your test session will be recorded and observed by one or more members of the development team.

Click here to sign up

We thank you in advance for your time and look forward to meeting you in San Diego.

Posted in 3D GIS, Analysis & Geoprocessing, Defense, Editing, Electric & Gas, Geodata, Hydro, Imagery, Local Government, Mapping, National Government, Oceans & Maritime, Petroleum, Public Safety, Python, Spatial Statistics, State Government, Telecommunications, Transportation, Water Utilities | Tagged , , , , , , , , , | Leave a comment

How is GIS Meeting the Needs of Ocean (and other) Sciences? Plus, Minus, Interesting…


Among the most important activities at the Esri Oceans Summit (November 7–8, 2012; see prior blog post 1 and prior prior blog post 2) were the breakout groups, where participants were called upon to identify major barriers to the use … Continue reading

Posted in 3D GIS, Analysis & Geoprocessing, Hydro, Oceans & Maritime, Python, Spatial Statistics | Tagged , , , , , , , , , , , | Leave a comment

Are you sure Intersect is the right tool for the job?

Are you sure Intersect is the right tool for the job?


ArcGIS Pro 1.0 introduced a PairwiseIntersect tool which emulates the pairwise tool discussed in this blog post.
ArcGIS Pro 1.1 has an additional pairwise tool, Pairwise Dissolve.
By default, starting in ArcGIS Pro 1.1, both the PairwiseIntersect and PairwiseDissolve tools run in parallel mode. This will allow these tools to distribute the work to all (or a portion of) the logical cores on the machine. The performance benefit of parallel processing varies from tool to tool and depends on the input data being processed.

Please see the following for more info: PairwiseIntersect and PairwiseDissolve

(Note: There are no system Pairwise tools provided in 10.x. Continue to use the provided methodology and scripts included with this post.)


I often talk with people using ArcGIS Geoprocessing who find themselves surprised about the amount of time the Intersect tool takes to run, or confused about the output results.  Much of the time this confusion comes from a misperception about what tool to use for the analysis, or from a lack of understanding of what the Intersect tool does.

Here’s an example… A user contacted me about the Intersect tool because the tool would run for hours and then fail. They perceived their data as small and really thought Intersect would only take a few minutes.

My first question, and one you should ask too is, “What do you really want for a result?”

The answer in this, and many cases was “I want to know how much of each feature in input 1 is in each feature in input 2.”

Cool!  That means Intersect is not the right tool to use! Continue reading

Posted in Analysis & Geoprocessing, Python | Tagged , , , , | 31 Comments

Updating Hosted Feature Services with Python

Note: A this workflow has been updated for ArcGIS 10.2/10.2.1. Please read that post depending on your version. [January 24, 2014]

More organizations are moving towards using hosted feature services to serve data. One common task that has become a popular question of late is, “How do I automatically update the data within this hosted service?” For example, your organization may want to push nightly updates to keep synchronized with the daily changes made by your Desktop users. One of the easiest ways this can be done as this blog describes, is by overwriting the feature service completely with an updated one.

The following Python script demonstrates how to:

Continue reading

Posted in Analysis & Geoprocessing, ArcGIS Online, Python, Services, Web | Tagged , , , , , | 40 Comments

Batch export your product library maps to Production PDF

GP tool

The Export Product Library Maps to Production PDF Python script uses Esri Production Mapping’s new Python site package, ArcPyProduction, to combine the capabilities of ArcPy and the geoprocessing functionality of product library. The primary function of this script is to … Continue reading

Posted in Mapping, Python | Tagged , | Leave a comment

How to Debug Python Toolboxes in 3 Easy Steps

This blog demonstrates how you can debug a Python Toolbox (.pyt) to troubleshoot and fix any errors that may be causing your tool to fail or produce invalid results.

Python Toolboxes are new at ArcGIS 10.1 and provide a new way to create geoprocessing tools entirely in Python with no requirement to use ArcGIS for Desktop. Continue reading

Posted in Python | Tagged , | 13 Comments

Avoiding GUI headaches: a case for scripting geoprocessing tools

Sometimes it can be a real pain to use a graphic user interface, or GUI. With ArcGIS geoprocessing tools we have tried to make the tool GUI, the tool dialog, easy to use. But sometimes the repetitive nature of a task can make using a tool dialog time-consuming and inefficient. Continue reading

Posted in Analysis & Geoprocessing, Python | Tagged | 9 Comments

Python scripting with 64-bit processing

Last week 64-bit Background Geoprocessing was made available for download. We’ve had a few questions from keen Python scripters who want to “get out of the application” and use their big data crunching scripts in 64-bit. If you’re one of those keen scripters, all you need to do is make sure you’re executing against 64-bit Python; no other special commands or tricks needed. Continue reading

Posted in Analysis & Geoprocessing, Python | Tagged , , | 7 Comments

Take Advantage of Keyword Arguments

This short blog explains and demonstrates that our arcpy and arcgisscripting modules support the use of keyword arguments and by using them; you can avoid long tool signatures. Keyword arguments are associated with function calls. In our arcpy and arcgisscripting modules, geoprocessing tools are considered functions. When you use keyword arguments in a function call, the caller identifies the arguments by the parameter name. This allows you to skip arguments or specify them in a different order. Let us look at two examples: Continue reading

Posted in Python | Tagged , | 4 Comments