Brazilian Institute of Environment and Renewable Natural Resources
- This package consists of a number of scripts utilities for use in conjunction with GDAL and tilers-tools.
- Started: 2015-03-05
- Version: 0.1
- Create RGB image (Ex.: image_r3g4b5.tif)
- Dependeces: gdal 1.10.1 (gdal_translate)
- Example (using parallel):
nohup parallel 2_rgb.sh {} 2 4 5 < LIST_OF_IMAGES
- Convert images of 16 to 8 bits (overwrite original file)
- Dependeces: gdal 1.10.1 (gdal_translate, gdalinfo, gdalbuildvrt)
- Example (using parallel):
ls -1 *.tif | parallel 16b_2_8b_convert.sh {}
nohup parallel 16b_2_8b_convert.sh {} < LIST_OF_IMAGES
- Using Kdialog (KDE)
- Dependeces: 16b_2_8b_convert.sh
- Check error for read image(print ERROR if exist error)
- Dependeces: gdal 1.10.1 (gdalinfo)
- Example (using parallel):
nohup parallel check_error_img.sh {} < LIST_OF_IMAGES
- Create GDAL_WMS file (XML) from image with no standard TAG
- Dependeces: gdal 1.10.1 (gdalinfo, ogr2ogr)
- Example:
create_gdal_tms_target_window.sh [IMAGE] MAX_ZOOM
- Create GeoJson with border's polygon of image (limited with valid pixels)
- Dependeces: gdal 1.10.1(gdal_calc.py, gdal_sieve.py, gdal_edit.py and gdal_polygonize.py)
- Example (using parallel):
nohup parallel footprint.sh {} < LIST_OF_IMAGES
- Using Kdialog (KDE)
- Dependeces: footprint.py
- Add URL of TMS in footprint(GeoJson) * NOT USE for others Geojson
- Dependeces: None
- Example (using parallel):
nohup parallel footprint_add_url_tms.sh {} http://10.1.8.20/test_lmotta < LIST_OF_IMAGES
- Create convexhull from Geojson (used to soften the footprint)
- Dependece: GDAL Python bindings 1.10.1
- Example (using parallel):
nohup parallel footprint_convexhull.sh {} < LIST_OF_IMAGES
- Using Kdialog (KDE)
- Dependeces: footprint_convexhull.py
- Create extent of image16b_2_8b_convert
- Dependece: GDAL Python bindings 1.10.1
- Example (using parallel):
nohup parallel footprint_extent.sh {} < LIST_OF_IMAGES
- Using Kdialog (KDE)
- Dependeces: footprint_extent.py
- Adds the footprint (GeoJson), all Geojson, inside shapefile (if not exist it is created)
- Dependeces: gdal 1.10.1(ogr2ogr)
- Example (NOT USE parallel!):
for item in $(ls -1 *.geojson); do footprint_append_shp.sh $item LC8_footprint.shp; done
- Create thumbnail file(PNG) from image
- Dependeces: gdal 1.10.1(gdal_translate)
- Example (use parallel!):
nohup parallel gdal_thumbnail.sh {} 30 < LIST_OF_IMAGES
- Create TMS structure (directories and files) and XML for GDAL_WMS driver from image
- Dependeces: dans-gdal-script 0.23-2(gdal_contrast_stretch), tilers-tools 3.2.0(gdal_tiler.py), gdal_thumbnail.sh
- Example (use parallel!):
nohup parallel mk_tiles.sh {} 2 17 ./png ./tms http://10.1.8.20/test_lmotta < LIST_OF_IMAGES
- Count the number of items in lists in current directory
- Dependeces: None
- Example:
ls_img_lst.sh
- Version: 1.10.1
- Source: www.gdal.org
- Ubuntu 14.04: installed by QGIS 2.8.1 or by Ubuntu GIS unstable
- Version: 3.2.0
- Source: https://code.google.com/p/tilers-tools/
- Ubuntu 14.04: download by source
- Version: 20130922-1
- Source: https://www.gnu.org/software/parallel/
- Ubuntu 14.04: available in the Ubuntu repository
These programs were written by Luiz Motta.
Send questions or comments to [email protected].
This software is provided "AS IS."