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

October 19, 2009

Great Introductory GIS Tutorial And Screencast Series

http://freegeographytools.com/2009/great-introductory-gis-tutorial-and-screencast-series

Quoted below...

The Department of Land Affairs, Eastern Cape, South Africa has created a terrific tutorial series on GIS called “introducing GIS”. PDF worksheets and video screencasts cover topics like vector and raster data, attributes, topology, coordinate systems, map production and spatial analysis in a clear and easy-to-follow fashion. The worksheets are freely distributable under the terms of the GNU Free Documentation License, while the screencasts are released under Creative Commons. While you can watch the screencasts in your browser, they are a bit small – I would recommend downloading them so that you can open them in a stand-alone video viewer that you can resize to larger dimensions for easier viewing. Right-click on the video link and choose “Save as”. For that matter, if you download all the screencasts and worksheets and put them on a DVD, you have a great educational resource to share and distribute.

The site has a custom Windows installer of the open source GIS Quantum GIS, including the data presented in the tutorials. However, Quantum GIS also runs on Mac and Linux, and they offer the tutorial data as a separate download; find the link at the bottom of the web page. For that matter, the Quantum GIS Windows installer they have is version 1.0.2, while the most recent stable release version for Windows is 1.2.0-1. So even if you have Windows, you may want to download the data separately, and install the most recent version of Quantum GIS using the osgeo4w installer.

October 14, 2009

Nokia Pc Suite error : "ensure your phone is in the Idle state"

I have a newly purchased Nokia E series device, namely E52, which is a nice phone with beautiful synchronization options.
Recently I had some errors during synch which I solved by goint to Control Panel -> Phone -> Synch and changing the synch settings. I had configured ovi synch lately and this was the cause of error as it was set as default. I have changed it to PC suite and the error disappeared.

September 11, 2009

Gdal tools

Saving a portion of a map with gdal_translate

gdal_translate -of JPEG world.topo.bathy.200407.3x21600x21600.A1.png world.topo.bathy.200407.3x21600x21600.A1.jpg -srcwin 0 0 1000 1000 -co "WORLDFILE=YES"

Tiling with gdal for geoserver pyramid serving
gdal_retile -of JPEG -pyramidOnly -ps 256 256 -levels 5 -targetDir piramid world.topo.bathy.200407.3x21600x21600.A1.png

or for Geotiffs;

gdal_retile -levels 5 -pyramidOnly -targetDir pyramid bathymetry.tif

To load these pyramid into geoserver you should create some properties and project files which I will discuss later.

Indexing with gdaltindex
geotiffPyramid\pyramid>gdaltindex -tileindex location test 1\*.tif

Creating a 3D image file from elevation data
gdaldem hillshade elevationGeotif.tif elevation.png

Adding overlay
gdaladdo -r average bath.tif 2 4 8 16 32 64 128

Merging geotiffs
gdal_merge -o c:\merged.tif *.tif

August 19, 2009

Howto convert geotiff elevation data to esri bil file format?

Use gdal tools, namely gdal_translate[1]. If your geotiff file has spatial specs encoded in it is really easy.

eg;
gdal_translate -of EHdr e020n40.Bathmetry.tif e020n40.bil

The gdal_translate command also creates the necessary bil header files.

[1] http://gdal.org/formats_list.html

Try to view the output with OpenEV.