GDAL Commands
GDAL commands used for our public map archive
Lists information about a raster dataset
gdalinfo -stats input.tif
Prepare image fro new map coordinate system with GCPs
gdal_translate -of GTiff -a_srs EPSG:4326 -gcp x(longitude "pixel") y(latitude "line") easting(longitude degree decimal) northing(latitude degree decimal) input.tif output.tif
Warp an image into a new coordinate system
gdalwarp -of GTiff -t_srs EPSG:4326 input.tif output.tif
Publish image map for tiled viewer. generating TMS tiles, KMLs and web viewers
gdal2tiles.py --title="Map Title" --tile-format="jpeg" --zoom=12-23 --copyright=COPYRIGHT --googlekey=KEYCODE input.tif output_dir
generate MBTiles from GeoTiff
raster2mb input.tif output.mbtiles
generate JPG from GeoTiff
gdal_translate -of JPEG -b 1 -b 2 -b 3 input.tif output.jpg
convert raster data between different formats - With a_ullr
gdal_translate -of GTiff -a_srs EPSG:4326 -a_ullr ulx uly lrx lry input.tif output.tif
convert geotiff to spherical mercator JPG
gdalwarp -of GTiff -t_srs EPSG:900913 input.tif output.jpg
All gdal utility programs
http://gdal.org/gdal_utilities.html
Customizations
MrSID converting to GeoTIFF
Resources:
* http://gdal.org/frmt_mrsid.html
* http://casoilresource.lawr.ucdavis.edu/drupal/node/98, we're putting installing a modified GDAL to be able to convert USDA MrSID files into geotiff:
* http://ubuntuforums.org/showthread.php?p=11316499
* http://www.lizardtech.com/developer/
I wanted to use gdal:
gdal_translate file.sid file.tif
However, the non-free LizardTech SDK (i used v8.5) comes with a utility called mrsiddecode, which can convert to geoTiff, so I ended up using that. Darn government, using non-free/proprietary image formats that have only one commercial vendor and no free alternatives!
Anyhow, the format is:
mrsiddecode -i input.sid -o output.tif
| Attachment | Size |
|---|---|
| example.txt | 1.13 KB |
What links here
Activity
-
On Jun 18, The creator of [GrassrootsMapping.org](http://grassrootsmapping.org) and co-founder and Research Director for the Public Laboratory for Open Technology and Science, Jeff designs mapping and civic science tools and professionally flies balloons and kites. Notable software he has created include [the vector-mapping framework Cartagen](http://cartagen.org) and [orthorectification tool MapKnitter](http://mapknitter.org), as well as open spectral database and toolkit [Spectral Workbench](http://spectralworkbench.org). He is a fellow at MIT's [Center for Civic Media](http://civic.mit.edu), on the advisory board of [Personal Democracy Media's WeGov](http://techpresident.com/topics/wegov) and an advocate of open source software, hardware, and data. He co-founded Vestal Design, a graphic/interaction design firm in 2004, and directed the Cut&Paste Labs project, a year-long series of workshops on opensource tools and web design in 2006-7 with Lima designer Diego Rotalde. Jeff holds an MS from MIT and a BA in Architecture from Yale University, and spent much of that time working with artist/technologist Natalie Jeremijenko, building robotic dogs and stuff. To find out more, visit Unterbahn.com. * https://github.com/jywarren * http://unterbahn.com * http://unterbahn.com/thesis/ updated Page: About Public Lab
-
Adam-Griffith commented on Adam-Griffith's Note "Folly Beach, SC - a detailed look at a $3 million beach "restoration"" on Jun Tuesday
-
Adam-Griffith commented on scaramel's Note "Video: Kitemappers" on Jun Tuesday
-
On Jun 13, Caterina Scaramelli created a new Note: Video: Kitemappers
-
On Jun 12, Stewart Long updated Map: Rotsoord. Utrecht, Netherlands.
-
On Jun 12, Stewart Long updated Map: Rotsoord. Utrecht, Netherlands.
-
On Jun 12, Stewart Long updated Map: Rotsoord. Utrecht, Netherlands.
-
On Jun 12, Hagit Keysar updated Page: MapKnitter Help
-
sonofaquark commented on sonofaquark's Note "Pascal's Wager" on Jun Wednesday
-
On Jun 10, www.quiviracoalition.org created a new Note: Test 1
-
On Jun 9, Shannon created a new Note: Public Lab community newsletter 6.9.13
-
tomh4236 commented on nedhorning's Note "Canon A2200 NIR conversion" on Jun Wednesday
-
On Jun 5, Adam D. Griffith is the Director of the Rivercane Restoration Project through the Program for the Study of Developed Shorelines (PSDS) at Western Carolina University. He received a BS degree in Biology from Roanoke College in 1999 (Omicron Delta Kappa) and was subsequently accepted to Teach for America. He taught 6th grade science in the Houston Independent School District in Texas for three years before becoming a kayak instructor taking him on numerous trips to the beaches of the United States, Panama, and Europe. He received his MS degree in Biology from Western Carolina University in 2008 studying the native bamboo Arundinaria gigantea. Since 2008, he has been a research scientist at PSDS where he launched coastalcare.org with the Santa Aguilla Foundation. He currently directs the communities and sea-level rise research. In 2011, he co-founded the Public Laboratory with 6 others by securing a $500,000 grant from the James S. and John L. Knight Foundation. As a result, his writings can be found on the PBS IdeaLab blog, publiclaboratory.org, and others. He has presented his research with the Public Laboratory across the United States, Mexico, and Europe. Selected Publications Tanner, B.R., Kinner, D.A., Griffith, A.D., Young, R.S. & Sorrell, L.M (2011). Presence of Arundinaria gigantea (river cane) on numerous non-wetland sites suggests improper ecological classification of the species. Wetlands Ecology and Management. 19(6): 521-532. Coburn, A.S., Griffith, A.D. & Young, R.S. (2010). Inventory of coastal engineering projects in coastal national parks. Natural Resource Technical Report NPS/NRPC/GRD/NRTR???2010/373. National Park Service, Fort Collins, Colorado. Griffith, A.D., Kinner, D.A., Tanner, B.R., Moore, A., Mathews, K.G. & Young, R.S. (2009). Nutrient and physical soil characteristics of rivercane (Arundinaria gigantea) stands, western North Carolina. Castanea. 74(3): 224-235. updated Page: Classification
-
dan.beavers commented on patcoyle's Note "Prototype juice bottle rig on R-10 UAir quad" on Jun Wednesday
-
On Jun 4, Stewart Long updated Map: Montgomery Bell State Park. Burns, Tennessee
-
On Jun 4, Stewart Long created a new Map: Montgomery Bell State Park
-
On Jun 4, Stewart Long updated Map: Rotsoord. Utrecht, Netherlands.
-
On Jun 4, Stewart Long created a new Map: Rotsoord. Utrecht, Netherlands.
-
On Jun 4, Stewart Long updated Map: Washington Crossing, Pennsylvania.
-
On Jun 4, Stewart Long created a new Map: Washington Crossing, Pennsylvania.

