I am currently trying to import a classification bitmap made by our own deep learning software into QGIS. The classification is saved in a TIF file, the classes are 8-bit integers. We have the class names in a text file and the coordinates (MTM) to geo-reference the image in another text file.

Ideally, we would want QGIS to assign colours to the classes, and when the user clicks on a particular pixel of the image, to have QGIS display the class name.

  • Perhaps test plugin provided in this question, gis.stackexchange.com/questions/245280/…, it can help. – xunilk Jan 17 '18 at 23:33
  • if you put the coordinates in "world file" format then QGIS will load the TIFF and use the world file data to put the data in the right place - you might have to specify the coordinate system manually (its not part of the world file spec). The world file for FOO.TIFF is FOO.TFW - search for more. – Spacedman Jan 17 '18 at 23:35
  • Thanks a lot about the TFW file info! That did the job. The image is now geo-referenced. I am testing the plugin now. – Jean Vézina Jan 19 '18 at 19:15
  • Many thanks also for the plugin! I modified it to read the class description file at initialization and it displays the class number along with its name when I move the cursor over the classification bitmap. Wonderful! Thanks again! – Jean Vézina Jan 20 '18 at 3:30

Your Answer

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

Browse other questions tagged or ask your own question.