How to display a Geo tiff file in Azure Maps

Uppalapati Vinay Kumar 20 Reputation points
2023-07-06T14:38:32.6166667+00:00

Display the Geo tiff file stored in blob storage on Azure Maps.

Azure Maps
Azure Maps

An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  2. rbrundritt 21,726 Reputation points Volunteer Moderator
    2023-07-06T16:33:58.4833333+00:00

    A GeoTiff image can be an image of different color bands which browsers don't support directly. Often each pixel can contain a metric per pixel instead, and require you to assign a color to for each metric before converting it into a visible image. GeoTiffs need to be converted to a standard image type (PNG, JPEG). If it is a smaller file, it is possible to do this within the browser by reading the data and drawing an image on a canvas. There are libraries available that can help with this: https://geotiffjs.github.io/

    If the file is larger, which is often the case with GeoTiff files, if should be hosted on the server side and converted into map tiles and overlaid on the map like that. TiTiler is a commonly used library for this purpose: https://developmentseed.org/titiler/ Taking this route would make it easy to view the GeoTiff in different map controls (Azure Maps Android/iOS/Web, or 3rd party controls like Cesium, Leaflet....).

    If you only have a couple of GeoTiff images, you could convert them to tiles on your computer using a tool like gdal2tiles or QGIS.
    https://www.youtube.com/watch?v=VlUg1lQJhms

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.