This guide provides detailed installation and configuration instructions for the GTTK ArcGIS Pro Python Toolbox.
- ArcGIS Pro installed on your system
- Administrator privileges for OSGeo4W installation
- GTTK cloned or downloaded to your system
CRITICAL PREREQUISITE: For the ArcGIS Pro Toolbox to function properly, you must have a standalone GDAL environment installed. The GDAL library bundled with ArcGIS Pro uses internal configuration settings that can override optimizations implemented through the GDAL Python API.
To work around this limitation, GTTK includes a specialized tool (gttk optimize-arc) that uses GDAL command-line utilities (gdal_translate, gdal_calc.py, gdalwarp, gdaladdo) executed via subprocess in an isolated OSGeo4W environment. This ensures optimal results while maintaining compatibility with ArcGIS Pro.
GTTK uses OSGeo4W, which provides access to the latest GDAL features and compression codecs while remaining isolated from ArcGIS Pro's internal GDAL. Another benefit of using the OSGeo4W installer is access to the free GIS software QGIS (see Installing QGIS via OSGeo4w below).
Note: For CLI users,
gttk optimize-arcis also available as a standalone tool. See the main README for details.
Download the appropriate installer for your system:
- 64-bit Windows (Recommended): OSGeo4W-v2-setup.exe
- Official Download Page: https://trac.osgeo.org/osgeo4w/
Note: The v2 installer is the modern, recommended version. Avoid the legacy v1 installer unless you have specific requirements.
-
Launch the downloaded
osgeo4w-setup.exewith administrator privileges (right-click → "Run as administrator") -
Choose Installation Type:
- Select "Express Install" for a quick, standard setup (recommended for most users)
- OR select "Advanced Install" for granular package control (experienced users)
If using Express Install, select:
- ☑ QGIS Desktop - Includes QGIS and core dependencies
- ☑ GDAL - Geospatial Data Abstraction Library (core requirement)
If using Advanced Install, you'll have more control over specific packages:
Required Packages:
- ☑ gdal - Core GDAL library (select latest stable version)
- ☑ gdal-python - Python bindings for GDAL
- ☑ python3-core - Python interpreter
Recommended Packages:
- ☑ qgis - QGIS Desktop application (see below)
- ☑ qgis-grass-plugin - GRASS GIS integration (optional)
- ☑ gdal-ecw - ECW format support (if needed)
- ☑ gdal-mrsid - MrSID format support (if needed)
Advanced Codec Packages (for maximum compression options):
- ☑ gdal-jxl - JPEG XL codec support
- ☑ gdal-zstd - ZSTD compression support
- ☑ gdal-lerc - LERC compression support
- Default Location:
C:\OSGeo4W(recommended) - Custom Location: Choose a path without spaces or special characters
- Important: Remember this path - you'll need it for GTTK configuration
- Review selected packages
- Click "Next" to download and install
- Wait for installation to complete (may take several minutes)
- Click "Finish" when done
After installation, update the GTTK configuration to point to your OSGeo4W installation:
-
Open
config.tomlin the GTTK project root directory -
Locate the
[paths]section:[paths] # Path to OSGeo4W installation (required for ArcGIS Toolbox) osgeo4w = "C:/OSGeo4W"
-
Update the
osgeo4wpath if you installed to a custom location:[paths] osgeo4w = "C:/Your/Custom/Path/OSGeo4W"
Open OSGeo4W Shell (search for it in the Start Menu) and run:
# Check GDAL version
gdalinfo --version
# Check available drivers
gdalinfo --formats
# Check Python GDAL bindings version
python3 -c "from osgeo import gdal; print(gdal.__version__)"Expected output should show:
- Long list of supported drivers including GTiff and COG
- Python GDAL version matching the GDAL library (3.11+ or the latest available)
While QGIS is an excellent tool and valuable for GIS workflows, standalone QGIS installations may lack the complete OSGeo4W dependencies that GTTK requires. The OSGeo4W installer provides:
- Complete GDAL Environment: All necessary GDAL libraries, tools, and dependencies
- Latest Compression Codecs: Access to modern codecs like JPEG XL (JXL), ZSTD, and LERC
- QGIS as an Option: Includes QGIS among selectable packages - you get both!
- Python Bindings: GDAL Python bindings for scripting and automation
- Consistent Updates: Centralized update mechanism for all geospatial tools
- Proven Compatibility: Widely used in professional and government environments
Benefits of Having Both ArcGIS Pro and QGIS:
- Access to both proprietary and open-source toolsets
- QGIS excels at certain tasks (e.g., styling, PostgreSQL/PostGIS integration, raster modeling with GDAL, etc.)
- ArcGIS provides a wide suite of industry- and government-adopted mapping tools and the ArcPy environment (used by GTTK's Toobox)
- Support for analytical workflows locked behind ArcGIS Pro extensions (e.g. Spatial Analyst) requiring additional licensing
- Access to hundreds of community-developed plugins supporting unique tools
- Open-source transparency and community support
Common Issues and Solutions:
-
"GDAL not found" error in ArcGIS Pro Toolbox:
- Verify
osgeo4wpath inconfig.tomlpoints to the correct location - Ensure path points to the OSGeo4W root directory (e.g.,
C:/OSGeo4W) - Restart ArcGIS Pro after changing configuration
- Verify
-
"Missing codec" errors (JXL, ZSTD, etc.):
- Run OSGeo4W installer again and select advanced codec packages
- Verify packages are installed: check
C:\OSGeo4W\bin\gdal\plugins
-
Permission errors during installation:
- Run installer as administrator
- If on a managed corporate/government system, contact IT department
- Consider installing to user-writable directory if needed
-
PATH conflicts with other GDAL installations:
- GTTK uses explicit path configuration to avoid conflicts
- Do NOT add OSGeo4W to system PATH if you have other GDAL installations
- GTTK will use the path specified in
config.toml
Getting Help:
- OSGeo4W User Guide: https://trac.osgeo.org/osgeo4w/wiki/TracGuide
- GDAL Documentation: https://gdal.org/
- GTTK Issues: Create an issue on GitHub
CRITICAL DEPENDENCY: The tifffile module is required for GTTK to function properly. This package is not included in the default ArcGIS Pro arcgispro-py3 conda environment and must be installed in a custom environment.
-
In ArcGIS Pro, click on the Project menu and open the
Package Manager. This manages the Python ArcPy conda environment(s). The pre-installed, default environment isarcgispro-py3. -
Clone the default environment into a new environment (e.g.,
arcgispro-gttk). This may take some time. If the clone fails, you may need to work with your IT department. If you already have a cloned environment (notarcgispro-py3), you may use that. -
Make the cloned environment active, then click on the
Add Packagestab in the ArcGIS Pro Package Manager. -
Search for "tifffile" and install it. The package is available in the default conda channels.
-
Ensure that the same environment is active when running GTTK tools from the toolbox.
-
Add Toolbox: In your ArcGIS Pro Project, open the Catalog pane, right-click Toolboxes and select Add Toolbox. Navigate to and select the
toolboxfolder in the project's root directory. -
Locate Toolbox: The
GTTK_Toolbox.pyttoolbox will be visible in the Toolboxes folder. You can now expand it to use the tools.
| Step | Action |
|---|---|
| 1 | Install OSGeo4W with GDAL |
| 2 | Configure config.toml with OSGeo4W path |
| 3 | Clone ArcGIS Pro Python environment |
| 4 | Install tifffile in cloned environment |
| 5 | Add toolbox to ArcGIS Pro project |