On Mon, Mar 12, 2012 at 12:08 PM, Ian Turton <[email protected]> wrote: > On 12 March 2012 10:46, Mustafa646 <[email protected]> wrote: >> I have download a tiff image (world imagery) from >> http://www.naturalearthdata.com/downloads/10m-raster-data/10m-cross-blend-hypso/ >> >> Then i Geo-referenced this image by using this command: >> gdal_translate -of GTiff -a_srs epsg:4326 -co tiled=yes test.tiff >> georeferenced.tif >> >> Finally, I published this image as Geotiff raster on Geoserver and tried to >> display as WMS base layer in Openlayers application as: >> >> var wmslayer1 = new OpenLayers.Layer.WMS("Third party Image tiles", >> GEOSERVER_WMS_URL, { 'layers': 'TestSpace:GeoHyp_LR', 'format': >> 'image/GEOTIFF' }, { 'opacity': 1.0, 'isBaseLayer': true, 'visibility': true >> }); >> > > GeoServer doesn't produce maps in image/GEOTIFF format.
Actually, GeoServer WMS can produce output in image/geotiff format, but OL would not know how to handle it. Example: http://demo1.geo-solutions.it/geoserver/geonetwork/wms?LAYERS=geonetwork%3ACarbon_Percent_Topsoil&STYLES=&FORMAT=image%2Fgeotiff&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-12.033771484375,9.0218828125,-6.168771484375,14.8868828125&WIDTH=512&HEIGHT=512 Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
