python

A collection of 13 posts

python

Append using ArcPy cursors

If we are using Python with ArcGIS, there are existing tools to append data. However, calling a Geoprocessing tool from Python doesn’t feel…

  • Bryan M
python

Using multiple versions of Python with ArcGIS

As Python continues its dominance as the defacto scripting language for GIS software, we hit a point when one Python environment isn’t…

  • Bryan M
python

Python Script to Overwrite Existing Service in ArcGIS Server

ArcGIS Desktop’s ArcPy package gives us the ability to publish a map service from a map document (MXD) inside Python. This can be very…

  • Bryan M
python

Use ArcPy to Connect to SDE and Versions

This post will discuss how to use ArcPy to Connect to SDE, create a new version, and switch to that version all inside a Python script. At…

  • Bryan M
python

Multiple Field Key to Single Field Key for Relates using ArcPy

An issue with multi-field unique keys (composite key) is that we can’t use them to setup a join or relate between objects (Feature Classes…

  • Bryan M
python

ArcMap Layers to LYR Files with Python

A tiny Python script to show how to export ArcMap Layers to LYR Files with Python. Although it’s a short script, it shows how easy it is to…

  • Bryan M
python

Secure Map Service to Shapefile with Python Part 3

This post is inspired by the many emails I’ve received on the first two posts in this series. This article will address the most most…

  • Bryan M
python

Map Service to Shapefile with Python Part 2 - Iteration

This post builds on the previous Extract a Map Service Layer to Shapefile using Python post. It seems as though many are interested in…

  • Bryan M
python

Extract a Map Service Layer to Shapefile using Python

How easy/hard is it to extract a Map Service layer to Shapefile using Python? Not as hard as you would think. Is it legal? Not as easy as…

  • Bryan M
python

Python Relative Directory

When using sub-directories to store temp files, analysis outputs, or logs - a nice way to deal with the parent directory when moving the…

  • Bryan M
python

Binary flags with Python

Sometimes you just want to run a few specific sections of your python code for testing. Then a few more. Next, all sections. Now run just…

  • Bryan M
developer

Useful GIS Developer Tools

Looking for additional tools for your coding toolbox? Here are 4 useful GIS developer tools you may or may not know about. Oh, they are also…

  • Bryan M
sql server

Feature Class export into native SQL Server table

Not too long ago, the only way to store spatial data inside a database was to have a custom/binary format managed in code or by software…

  • Bryan M