[GIS] How to display a geotiff-image with OpenLayers at the “right place”

geotiff-tiffgoogle mapsopenlayers-2

I'm just starting with OpenLayers.
I have a georeferenced geotiff and the associated world file.
Now I want to display this image as an Overlay and google-maps as baselayer with OpenLayers.
Would be nice if anybody has some hints?
How to get started in the right way?
thanks, southente

Best Answer

OpenLayers supports projections.

You should know the current projection of your GeoTIFF and specify it to the layer, as EPSG code.

If you have no idea of your GeoTIFF file projection, use GDAL to know it.

In command line :

gdalinfo ./path/to/your/geo.tif 

You will get back the desired information

If you don't know the EPSG code, you can get it using http://spatialreference.org/

Some examples are on OpenLayers' website :

Also, reading that page would give you some basics on how projections are handled.