Export map layers to gdb with python

Posted by in Data, GIS

Here’s a quick one. I have used this script many times as part of a data inventory workflow. It’s also been handy to start project databases with data from a variety of sources – so I can pluck data out of my source GIS databases into specific project databases. When used in conjunction with some […]

Grid of measured points with python

Posted by in ArcMap, Data, GIS
Grid of measured points with python

I’ve needed to create a measured grid of points for a variety of reasons in my GIS career. Here’s a flexible bit of code to create a grid of points spanning a vertical and horizontal range, at a specific interval for each – defined in the script. This method also allows any coordinate system and […]

Zip all shapefiles in directory individually

Posted by in ArcMap, Data, GIS
Zip all shapefiles in directory individually

This script zips individual shapefiles within a defined directory. The zipfiles are named identical to the shapefile itself. This is useful for platforms like CartoDB and MapBox, especially if you are in an Esri workflow. If you are usging a geodatabase, it can be converted to shapefiles, then those shapefiles can be passed through this […]

Batch export mxds in a folder

Posted by in ArcMap, GIS
Batch export mxds in a folder

Below is python to export all mxd’s in a given directory. I use this very often in my current workflow. This is used when data driven pages is either not appropriate or does not adhere to workflow standards. We need individual mxd’s for each map and each version of each map, individual maps can’t be […]