python

A collection of 13 posts

Feature Class export into native SQL Server table cover image
sql server,  analysis,  python

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…

Useful GIS Developer Tools cover image
developer,  javascript,  python

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…

Binary flags with Python cover image
python,  developer

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…

Python Relative Directory cover image
python,  developer

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…

Extract a Map Service Layer to Shapefile using Python cover image
python,  developer,  arcgis server

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…

Map Service to Shapefile with Python Part 2 - Iteration cover image
python,  developer,  arcgis server

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…

Secure Map Service to Shapefile with Python Part 3 cover image
python,  developer,  arcgis enterprise,  arcgis server

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…

ArcMap Layers to LYR Files with Python cover image
python,  developer,  arcgis desktop

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…

Multiple Field Key to Single Field Key for Relates using ArcPy cover image
python,  developer,  arcgis desktop,  arcgis pro

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…

Use ArcPy to Connect to SDE and Versions cover image
python,  developer,  arcsde

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…

Python Script to Overwrite Existing Service in ArcGIS Server cover image
python,  arcpy,  arcgis enterprise,  arcgis server

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…

Using multiple versions of Python with ArcGIS cover image
python,  arcpy,  arcgis desktop

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…

Append using ArcPy cursors cover image
python,  arcpy,  arcgis desktop

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…