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)
- Dependencies: 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)
- Dependencies: 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)
- Dependencies: 16b_2_8b_convert.sh
- Check error for read image(print ERROR if exist error)
- Dependencies: gdal 1.10.1 (gdalinfo)
- Example (using parallel):
nohup parallel check_error_img.sh {} < LIST_OF_IMAGES
- Check overlap inside shapefile
- Dependencies: gdal, python-gdal
- Create CSV files: name_shapefile_overlap.csv, name_shapefile_invalid.csv, name_shapefile_empty.csv
check_overlaps.py --multiproc name_shapefile - Example(using multiprocessing):
check_overlaps.py --multiproc name_shapefile
- Create GDAL_WMS file (XML) from image with no standard TAG
- Dependencies: 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)
- Dependencies: 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)
- Dependencies: footprint.py
- Add URL of TMS in footprint(GeoJson) * NOT USE for others Geojson
- Dependencies: 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)
- Dependencies: 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)
- Dependencies: footprint_extent.py
- Adds the footprint (GeoJson), all Geojson, inside shapefile (if not exist it is created)
- Dependencies: 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
- Dependencies: 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
- Dependencies: 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
- Dependencies: 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."