top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

Achieving 26:1 Imagery Compression with the LSU Atlas DOQQ Dataset

Winning Code Line

gdal_translate -co NUM_THREADS=ALL_CPUS -r bilinear -of COG -co COMPRESS=JPEG -co QUALITY=90 -co BIGTIFF=YES --config GDAL_CACHEMAX 1024 input.vrt output.tif

Louisiana

Statewide Louisiana

This project showcases colorful aerial photogrammetry data mesh of terrain, 3D photogrammetry model with overlapping imagery textures, and aerial photogrammetry data visualization of a landscape. The images represent the use of photogrammetry to create detailed 3D models of various terrains and landscapes.

As I believe sharing solutions is the only way to continue overall growth, I have attached the command sequence that finally yielded the results that are linked. Keep in mind, your data must be perfect or this does not work! At the scale of 3500 files, this was my biggest challenge.

Convert SID Imagery to Cloud Optimized GeoTIFF

Save a batch file (.bat) in the directory where all of the Tiff Tiles are stored --> Once saved, double-click, and let it run

Batch file text:
@echo off
SET inputDir="INPUT_DIRECTORY"
SET outputDir="OUTPUT_DIRECTORYs"
if not exist "%outputDir%" mkdir "%outputDir%"
for %%f in ("%inputDir%\*.sid") do (
echo Processing file: %%f
gdal_translate %%f "%outputDir%\%%~nf_cog.tif" -of COG -co COMPRESS=LZW
)
echo Done!
pause

gdal_translate -of COG -co COMPRESS=JPEG -co QUALITY=50 output.vrt output_COG.tif

gdal_translate -co COMPRESS=JPEG -co TILES=YES .sid output.tif
C:\Program Files\QGIS 3.34.0>cd C:\GIS\GIS Data\DOQQ Imagery\DOQQ Imagery\2005 Tiles

gdalbuildvrt -resolution highest test.dem *.tif

gdal_translate -co NUM_THREADS=ALL_CPUS -r bilinear -of COG -co COMPRESS=JPEG -co QUALITY=90 -co BIGTIFF=YES --config GDAL_CACHEMAX 1024 input.vrt output.tif

bottom of page