Smathermather's Weblog

Remote Sensing, GIS, Ecology, and Oddball Techniques

GDAL tools of the trade: GDAL, MrSid, and nearblack revisited

Posted by smathermather on February 11, 2016

internet_archiveBack in 2011 I wrote a post about GDAL, translating MrSID files and trimming off the artifacts so mosaics work. I’m revisiting some similar work this week and realized I had lost my copy of FWTools that can deal with MrSIDs. The Internet Archive came to the rescue.

At some point LizardTech licensed a DLL that allowed for compilation compatible with FWTools licensing so we could do things like use gdal_translate to covert a MrSID file to a tiff. Later on, the licensing changed, but binaries created prior to the change hold that original license. The WayBack Machine archived one such copy here: https://web.archive.org/web/20130127013649/http://home.gdal.org/fwtools/FWTools202.exe .

Download, install, and now for some Batch scripting fun… .

W:\Aircraft\naip_ortho>for %I in (*.sid) do gdal_translate %I %~nI.tif

W:\Aircraft\naip_ortho>gdal_translate ortho_1-1_1n_s_oh035_2015_1.sid ortho_1-1_
1n_s_oh035_2015_1.tif
Input file size is 58222, 49140
0…10…20.

2 Responses to “GDAL tools of the trade: GDAL, MrSid, and nearblack revisited”

  1. Luke said

    Or you can download an up to date version of GDAL and install MrSID support as a plugin http://www.gisinternals.com/release.php

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: