April 24, 2013

GDAL strikes back...

I find myself working with GDAL tools with various projects from time to time and always I appreciate the people behind it.

Now some memo for myself:

Adding tiles to a geotiff with specific block size:
gdal_translate -co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=256 mytif.tif output.tif


Compressing a geotiff (use it if the raster source is imagery, not very suitable for elevation and other data)
gdal_translate -co COMPRESS=JPEG -co TILED=YES -co JPEG_QUALITY=85 mytif.tif output2.tif


Adding overlays from to a geotiff file (taken from here):
gdaladdo -r gauss --config PHOTOMETRIC_OVERVIEW YCBCR --config COMPRESS_OVERVIEW JPEG --config JPEG_QUALITY_OVERVIEW 85 output2.tif 2 4 8 16 32 64

October 19, 2011

Shapefile datasources for world maps


I have found  some sources of shapefiles related to world maps;

http://barendgehrels.blogspot.com/2010/12/free-shapefile-of-countries-of-world.html

From this site the following source is referenced;

http://www.baruch.cuny.edu/geoportal/data/esri/esri_intl.htm

World countries...
http://www.baruch.cuny.edu/geoportal/data/esri/world/cntry08.zip

Update:
More sources for world vector data is listed below.

http://www.naturalearthdata.com/ (Free vector and raster map data at 1:10m, 1:50m, and 1:110m scales)

http://www.gadm.org/ (Global Administrative Areas)

You can also use Open Street Map as a datasource. To my surprise, they also deliver all data in files.

dba

May 24, 2010

Nice tool for command line operations - sfk

This utility has some nice shorthand features that helps a lot when dealing with lots of files if you have limited knowledge of scripting ...


http://stahlworks.com/dev/index.php?tool=run

November 13, 2009

Sample WCS request to geoserver 2.0

This is a sample WCS request to be submitted to WCS;

http://localhost:8080/geoserver/wcs?service=WCS&request=GetCoverage&version=1.1.1&identifier=topp:bath&BoundingBox=-74.047185,40.679648,-72.907005,45.882078,urn:ogc:def:crs:OGC:1.3:CRS84&format=image/geotiff&width=800&height=800