Welcome to the Geomatica Python Cookbook!¶
Welcome to PCI’s Geomatica Python Cookbook. An online resource for Geomatica’s Python Community.
Geomatica’s python library offers geospatial developers and solution providers with a powerful set of remote sensing, photogrammetry, image processing, image analysis and information extraction tools.
This cookbook is great for new users looking to familiarize themselves with Geomatica’s python library and common workflows. It is also a great resource for more advanced users, as it contains useful code snippets that can be easily “plugged in” to a python script.
Requirements:
- Geomatica 2016 or newer. The most recent Geomatica version is available from our downloads page: http://www.pcigeomatics.com/trygeomatica
- If you are installing Geomatica for the first time, this installation comes with a trial license.
- Python 2.7.X 64bit (automatically installs with Geomatica)
Geomatica Python Recipes¶
- Geomatica Py General
- Satellite Photogrammetry
- Import Satellite Images
- Create .pix Link File for Satellite Images
- Import satellite images from auxiliary files
- Automatic GCP Collection and Refinement
- Automatic GCP Collection and Refinement - Batch Processing
- Iterate through GCP collection/refinement until success - Batch Processing
- Automatic GCP Collection and refinement from road vector layer
- Satellite Orthorectification with GCPs previously collected - Batch Processing
- Automatic Bundle Adjustment and Orthorectification (GCPs previously collected)
- Automatic DEM Extraction with Model Refinement(GCPs previously collected)
- Satellite Photogrammetric Batch Workflow with user provided DEM - Full Workflow
- Satellite Photogrammetric Batch Workflow with DEM Extraction - Full Workflow
- Digital Aerial Photogrammetry
- Create .pix Link File from Raw Aerial Images
- Discover all airphotos in a directory and create .pix link file - Batch Processing
- Setup Digital Airphoto Project for Photogrammetric Processing
- Automatic DEM Extraction from Aerial Imagery - Batch Processing
- Automatic Orthorectification of Aerial Imagery
- Automatic Orthorectification of Aerial Imagery - Batch Processing
- Digital Aerial Orthorectification with user provided DEM - Full Workflow
- Digital Aerial Orthorectification with DEM Extraction - Full Workflow
- Create Camera Calibration (.xml) file
- Generic Geometric Correction
- Automatic GCP collection and 2D geometric correction with Polynomial Model
- Automatic GCP collection from road vector layer with generic 3D Geometric Correction
- Automatic GCP collection and 3D geometric correction with Thin Plate Spline Model
- Automatic GCP collection and 3D geometric correction with Thin Plate Spline Model - Batch Processing
- Mosaicking
- Projections
- Files & Layers
- Create .pix (PCIDSK) file with empty channels defined
- Create .pix (PCIDSK) file with no projection defined
- Add or delete new channel to an existing .pix file
- Copy image channels to an existing file with different projection
- Import from foreign file to .pix or .pix link file
- Export rasters or vectors to different file formats
- Data Transformations
- Convert bitmap to vector line or vector polygon layers
- Convert raster to vector line, vector polygon, vector point and bitmap layers
- Convert vector line layer to vector polygon, vector point and raster layers
- Convert vector polygon layer to vector line, vector point, bitmap and thematic raster layers
- Create raster DEM from various vector elevation layers
- Create raster DEM from LIDAR points (.las)
- Generate contours from raster DEM
- Geospatial Image Processing
Contributors & Special Thanks¶
Author: Shawn Melamed & Sarah Thompson
PCI Geomatics would like to extend a special thanks to the following contributors:
- PCI Development Team for developing the functions and objects
- Michael Goldberg for helping with the documentation
- Mauro Scatozza for getting the GitHub project launched
- Cristina Goring for helping edit scripts and documentation