I want to publish tiff image in browser using Mapserver, for obtaining elevation data. Is there any resource or example regarding this.

  • I'm not aware of any browser that natively supports a tiff image (such that you can view the image in the web page). You can use MapServer WCS to supply a Tiff for download and/or use a Tiff as data input to supply a browser viewable image such as gif, jpeg or png. Can you clarify your requirements? – nmtoken Jan 29 '15 at 14:24

Here's an example of a MapServer service (version 7.1-dev) providing a WCS 2.0 service using GeoTiffs as the data source.

Here we have a GetCoverage request for an image/png output format:

Clicking on the above link should result in an image being displayed in your browser.

Here's the same request but his time we ask for an image/tiff as the output format.

Clicking on the above link will probably result in your browser asking you to save the image to your PC, where you will need to view it in some image software like http://www.gimp.org/downloads/.

Instead of using a browser to view the Tiff output of the service an alternative would be to use QGIS and the QgsWcsClient2 plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.