--- layout: example.html title: GeoTIFF Reprojection shortdesc: Demonstrates how a GeoTIFF can be rendered in a different projection. docs: >

This example demonstrates how data from a GeoTIFF in one projection can be displayed on a map with a different projection. For other source types, it is necessary to specify the source projection when it differs from the map view projection. In this example, information about the source projection is included in the GeoTIFF metadata, so it doesn't need to be specified in the application code.

The source.getView() method returns a promise that resolves after the GeoTIFF metadata has been fetched. This can be used to get the image projection information along with the image extent and center coordinates. The transform() function is used to transform the source imagery center coordinate when updating the view.

OpenLayers has built-in reprojection support for sources in Universal Transverse Mercator (UTM) projections. Since the source data shown here is in UTM Zone 36 N, no additional configuration is needed to reproject the data to the map projection (Spherical Mercator).

See these other examples for details on the following:

tags: "cog, geotiff, reprojection, utm" ---