Thursday, November 19, 2026Vol. III · No. 323Subscribe
The Mining, Energy & Technology Wire
Explainer

How do you automate GIS workflows with Python for energy companies?

Energy companies automate GIS by scripting recurring mapping, siting and reporting tasks in Python, so each run follows the same documented steps instead of a series of manual clicks.

How do you automate GIS workflows with Python for energy companies?
PhotographEnergy companies automate GIS by scripting recurring mapping, siting and reporting tasks in Python, so each run follows the same documented steps instead of a series of manual clicks.Photo: Martin Sanchez / Unsplash

Automating GIS with Python means writing scripts that load spatial data, run the same geoprocessing steps in the same order, and write out results, so a mapping or siting task can be rerun on new data without redoing the work by hand. Energy companies do this with vendor tools such as Esri's ArcPy and with open libraries such as GeoPandas. Because the steps live in code, the work becomes repeatable and easier to review.

Key Points

Understanding GIS Automation

Much energy-sector mapping is not a one-off project. Pipeline operators have to keep asset locations current and report them. Developers screening sites run the same exclusion logic over new areas. Analysts refresh maps of plants, wells and facilities as source data changes. Done by hand in a desktop interface, each repeat depends on someone remembering every setting. Done in a script, the settings are written down.

Two families of tools cover most of this. The first is Esri's. ArcGIS includes a Python API, ArcPy, which Esri says provides access to all geoprocessing tools as well as additional functions, classes and specialized modules that help automate GIS tasks. Esri's ArcGIS Pro documentation describes ArcPy as a Python package for geographic data analysis, data conversion, data management and map automation, with access to approximately 2,000 geoprocessing tools. ArcPy requires an ArcGIS product, such as ArcGIS Pro, ArcGIS Server or ArcGIS Notebooks.

The second family is open source. GeoPandas extends pandas by adding support for geospatial data, according to its documentation. Its core data structure, the GeoDataFrame, is a subclass of the pandas DataFrame that can store geometry columns and perform spatial operations. Anyone who can work with a table in Python can work with a map layer in much the same way.

A third piece is the ArcGIS API for Python. Esri designed it for web GIS, and it is included with ArcGIS Pro but also works with ArcGIS Online or ArcGIS Enterprise. Esri says it is used to manage and analyze web GIS data, automate administrative tasks, and create web maps and applications.

How It Works

A typical automated pipeline has the same skeleton whichever library is used.

  1. Ingest the data: In GeoPandas, read_file() reads a file containing both data and geometry (for example GeoPackage, GeoJSON or Shapefile), detects the file type automatically and creates a GeoDataFrame. The OGC GeoPackage standard describes rules for storing vector features, tile matrix sets and non-spatial tabular data in a SQLite database, which makes it a natural single-file container for a pipeline's inputs and outputs. Public sources feed in as well. The EIA's U.S. Energy Atlas, released on January 4, 2021, offers downloads of entire datasets or filtered subsets in formats including shapefile, KML, geodatabase and spreadsheet. EIA says users can combine its data with information from other sources for their own geospatial analysis.

  2. Check the coordinate reference system: Each GeoPandas GeoSeries has a crs attribute that stores the projection. This step is easy to skip and costly to get wrong. The GeoPandas documentation warns that for operations relying on distance or area, you always need a projected CRS (in meters, feet, kilometers and so on) rather than a geographic one (in degrees). Its introduction example makes the point: gdf.area.sum() in a projected CRS gives 8,429,911,572 ft2, while boroughs_4326.area.sum() in a geographic CRS gives 0.083, a number in degrees that means little for engineering. A script can assert the CRS on every run so the error never reaches a report.

  3. Run the geoprocessing: In ArcPy, Esri's example calls arcpy.analysis.Buffer(roads, output, "100 Feet") to buffer a roads layer. Esri notes that ArcPy functions can list datasets for batch processing, or describe a dataset to read its properties programmatically. So one script can loop over many layers with identical settings. Esri also says that however you run Python, whether in ArcGIS Notebooks, the Python window, script tools or outside ArcGIS Pro, commands work fundamentally the same way and use the same geoprocessing tools. A workflow prototyped interactively can therefore move to scheduled scripts without being rewritten.

  4. Log what happened: ArcPy returns tool output as a Result object, which, per Esri, maintains information about how a tool was run, including messages, parameters, and output dataset paths and values. That log is the raw material for an audit trail.

  5. Write the output: GeoPandas GeoDataFrame.to_file() writes data back to file, inferring the format from the file extension unless the driver keyword is set. The result can be a deliverable layer for a regulator, a colleague or a downstream model.

A Large-Scale Example: reV

NREL's reV model shows what a fully scripted siting workflow looks like. NREL describes it as a platform for detailed assessment of renewable energy resources and their geospatial intersection with grid infrastructure and land use characteristics. It supports PV, concentrating solar power and land-based wind turbine technologies. The PyPI project page describes it as an open-source geospatial techno-economic tool that estimates technical potential, system cost and supply curves, and lists geothermal among the technologies.

The structure is the point. reV is a set of Python classes and functions that can be executed on high-performance computing systems using command-line commands. A full execution consists of one or more compute modules strung together with a pipeline framework, or configured using batch. A typical workflow starts with wind, solar or geothermal resource data passed through the generation module. The results are collected across space and time, then aggregated under user-specified land exclusion scenarios. The exclusion data is typically provided as a collection of high-resolution spatial layers stored in an HDF5 file. Transmission costs are then computed for each aggregated "supply-curve point" using user-provided transmission cost tables.

Because the scenarios and inputs are defined in configuration, changing an assumption means rerunning the pipeline, not rebuilding a map. PyPI's description says analysts can assess potential from a single site up to an entire continent, at temporal resolutions from five minutes to hourly, spanning a single year or multiple decades.

Why It Matters

Some of this work is mandatory. Under 49 CFR 191.29, each operator of a gas transmission pipeline or liquefied natural gas facility must provide geospatial data to PHMSA for that pipeline or facility. The same regulation states that acceptable formats and additional information are specified in the NPMS Operator Standards Manual. A submission that must meet a published format specification is a good candidate for a script. The script can validate fields, geometry and projection every time, and it applies the same rules to every submission cycle.

The second benefit is reviewability. A script is a written account of the steps taken. Combined with tool-level run logs like ArcPy's Result object, or a pipeline configuration like reV's, it lets a second person see how a number was produced and rerun it. That is harder to do with a sequence of interface clicks that exists only in someone's memory.

Related Terms

Frequently Asked Questions

Do you need ArcGIS to automate GIS with Python?

No. ArcPy requires an ArcGIS product such as ArcGIS Pro, ArcGIS Server or ArcGIS Notebooks. GeoPandas is an open library that reads and writes common formats such as GeoPackage, GeoJSON and Shapefile without one. Many teams use both, depending on the task.

Why does the coordinate system matter so much in scripts?

Distance and area calculations depend on units. GeoPandas' documentation says to use a projected CRS for these operations, not a geographic one. A script that checks the CRS before measuring prevents results in degrees from being mistaken for feet or meters.

Where can the input data come from?

Sources include a company's own asset data and public datasets. The EIA's U.S. Energy Atlas includes locations of power plants, coal mines, oil and natural gas wells, pipelines, storage facilities, natural gas processing plants, refineries and other energy facilities, and it can be downloaded in several formats.


Last updated: November 19, 2026. For the latest energy news and analysis, visit stakeandpaper.com.

Original reporting and analysis by the Stake & Paper editorial team. See linked sources within the article.

Share this story

More from Stake & Paper

Was this article helpful?

ClaimWatch

Mining claims intelligence — from query to report, in minutes.

Every unpatented mining claim across all twelve BLM states. Leadfile audits, due diligence, site selection, regional prospecting, entity investigations, and AOI monitoring — delivered as complete report packages.

4.4M+
Claims Tracked
12
BLM States
7
Report Types
Request a Sample Report
Stake & Paper AM

One morning brief. The whole energy sector.

Original analysis, the day's most important wire stories, and market data — delivered before your first cup of coffee. Free.