I have a tiff file and I want to show that tiff file on the Openlayer map on its respective coordinates. I tried many ways on youtube but could not find a proper way to show the tiff file on OpenLayers. Kindly give a code snippet or proper way so that I can show the tiff file on the OpenLayers map. I am using angular and opanlayer.
-
Is the file a simple tiff image or a GeoTIFF file?Mike– Mike2022-08-02 14:11:25 +00:00Commented Aug 2, 2022 at 14:11
-
simple tiff imageZafar Ijaz Khan Niazi– Zafar Ijaz Khan Niazi2022-08-02 14:31:14 +00:00Commented Aug 2, 2022 at 14:31
-
You would need to display it as an ImageStatic and use a custom loader and third party utility to decode it codesandbox.io/s/static-image-forked-1mc3xb?file=/main.jsMike– Mike2022-08-02 14:37:11 +00:00Commented Aug 2, 2022 at 14:37
-
thanks for your answer one more question it is possible to overlay tiff file on openlayer beacuse tiff file is of specific coordinataes and i want to show this tiff file on map with respective coordinaties.Zafar Ijaz Khan Niazi– Zafar Ijaz Khan Niazi2022-08-02 14:46:05 +00:00Commented Aug 2, 2022 at 14:46
-
Yes, if you know the coordinates and projection, as in openlayers.org/en/latest/examples/reprojection-image.htmlMike– Mike2022-08-02 17:21:52 +00:00Commented Aug 2, 2022 at 17:21
Add a comment
|