Home
Amazon AWS and GDAL
- Details
- Written by charlie
- Category: Low Cost Mapping
The Geospatial Data Abstraction Library or GDAL, (http://www.gdal.org/) is the trusty, open source, Swiss army knife of geoprecessing software, providing behind the scenes muscle to many GIS programs, Grass GIS, QGIS and Geoserver included.
Wanting to merge 9 raster maps using gdal_merge.pyto model a watershed, I realized it was not natively available in Grass GIS. Having both a production server running Geoserver and content with my Grass GIS setup on my laptop - I was hesitant to install GDAL on either platform, it has a reputation for being difficult to install, and lacking the confidence to repair any dependency errors - I had two options.
I could have either pulled an oldlaptop out of storage and do a fresh Ubuntu install, orstart a Small (T1) Ubuntu instance through Amazon AWS (aws.amazon.com), install GDALand start and stop the instance it as needed. Taking the AWS route, it took less effort and time than expected. As an added bonus, the instance can beexpanded asneeded to process large datasets - try that with a clunker laptop running 2GB of memory.
Through the AWS Admin panel, I createda Small (T1) Ubuntu Trusty- 14.04 instance. Installing GDAL was painless, for my needs, it required both the GDAL installation plus Python, installed by using apt-get as follows:
sudo apt-get install libgdal-dev
sudo apt-get install python-gdal
Verify that gdal is installed and version by using:
gdal-config –version
After uploading and changing permissions of the files I needed to merge with gdal_merge.py, I ran the script, using thistimesaving tip, which will merge merge all files in the current directory with the .tif extension, as follows:
gdal_merge.py -o output.tif $(ls *.tif)
It took all of 30 seconds to merge all 9 files, and after processing the file was downloaded and worked correctly.
Additional Reading and Resources
Manual page forgdal_merge:http://www.gdal.org/gdal_merge.html
Manual page forgdal-config: http://www.gdal.org/gdal-config.html
http://www.sarasafavi.com/installing-gdalogr-on-ubuntu.html
http://skipperkongen.dk/2012/02/21/pointers-for-gdal-and-python/
Japanese Knotweed
- Details
- Written by charlie
- Category: Wetland Plants
Python Hosting
- Details
- Written by charlie
- Category: GIS & Mapping
Just a quick shoutout to PythonAnywhere! I have been tinkering with some Python code for a web app and needed to set up Django or web2py, but didn't want to modify a live server or set up an additonal server solely for testing. I signed up for the free service, and was able to easily choose a version of python, add modules, set up a Mysql database or a run cron job. I added web2py in less than 30 seconds, with one eye on the game, in comparison to the grief I would have encountered setting it up on a shared server. For my needs, I found it perfect for running a small test environment and it is highly recommended.
Wetlands in the News
07 May 2024
-
Colorado legislature: Lawmakers pass bill to restore wetlands protections for half of state’s waters
The Colorado House and Senate convened for the penultimate day of the 2024 session Tuesday as they rushed to wrap up legislation on property taxes, gun regulations, housing, land-use policy,...
-
Roberts, Dems Strike Deal on Regulating Critical Wetlands as Kirkmeyer ‘Lets Water Bill Go’
For state Sen. Dylan Roberts (D-Frisco) “protecting and securing our water future is the most important issue and biggest challenge facing our state for the next several decades.” So...
-
Wild turtle painted in what may be a senior prank. It’s no joke to Port Royal wetlands group
A not-for-profit that advocates for Cypress Wetlands and its wildlife notes it is against the law to harass wildlife...
-
Biden sets goal to protect wetlands, rivers, streams
Welcome to The Hill’s Energy & Environment newsletter{beacon} Energy & Environment Energy & Environment The Big Story Biden sets goal to protect wetlands,...
-
Colorado lawmakers agree on compromise legislation seeking to protect wetlands
Two vastly different approaches to protecting a million acres of Colorado wetlands became part of a compromise that is now nearing the governor's desk.