Hi Jane,
There is a mechanism to load a GeoTIFF file as a Classified file. What you need is a GDAL PAMDataset auxiliary file (otherwise known as a raster attribute table or RAT file). If you have a TIF file called "LCM.TIF", then this auxiliary file would need to be called "LCM.TIF.AUX.XML". It would have the information in it to map from the band 0 values (1-21) to the classification color and label. If that file is present, then MapInfo would automatically load it. So, in theory, the EIDC ought to have shipped this file with the data package to support loading in MapInfo.
However, I am not surprised that they did not ship this file because I suspect very few people in the world know how to make one. I sure as hell don't know. The utility GDALINFO seems like a good place to start - it will write one of these files. You can run it from QGIS, for example. However, the file it produces does not contain all the information you need. Maybe someone else can help.
However, I can provide you with an alternative. You can create a virtual raster (MVR file) that classifies the TIF file on the fly. I have attached the MVR file, which you can save next to your TIF file. You just need to edit the MVR file with a text editor to make sure it has the right TIF file name. It is right at the top -
<VirtualRaster>
<Raster Name="UK Land Cover 25m" Filename="LCM.tif"/>
You can load this MVR file into MapInfo just like it is a raster and it ought to display. I hope it works on 2019.3 - I have 2021. Also, I think it works even if you do not have the Advanced (raster plug-in). With Advanced you can run the Convert operation and convert the MVR to an MRR. I recommend doing this.
------------------------------
Sam Roberts
Founder, Roberts Geospatial Engineering
Australia
------------------------------
Original Message:
Sent: 03-03-2022 11:15
From: Jane Mason
Subject: Unable to created classified raster legend
Thanks Anshul - I didn't make it clear that I only have MapInfo Pro, not MapInfo Pro Advanced, so I don't have access to the functions of the Calculator tool. Good to know that I'm not overlooking something though.
Thanks for your help,
Jane
------------------------------
Jane Mason
Biological Records Officer (GIS), Suffolk Biodiversity Information Service, UK
Original Message:
Sent: 03-03-2022 08:35
From: Anshul Goel
Subject: Unable to created classified raster legend
Hello Jane,
The reason why UK Land Cover file is not getting displayed in Create Legend window is because MapInfo Advanced is mounting the file as imagery and we don't support legend creation for imagery files. The UK Land Cover Map 2020 25m rasterised land parcels data is a tif file with 3 bands and as a result we mount it as imagery Raster.
As a workaround you can use Calculator tool to extract the required band from the UK Land Cover file and mount it as a continuous Raster. Once done you should be able to Create Legend without any issues.
Attaching screenshot below to for extracting a band through calculator tool:
------------------------------
Anshul Goel
Pitney Bowes Software Inc.
Shelton CT
Original Message:
Sent: 03-02-2022 12:36
From: Jane Mason
Subject: Unable to created classified raster legend
I have a classified raster which I have displayed in v2019.3 using Pseudo Color on the required band and the Advanced Color tool to create colours for each of the 21 classes according to the colour recipe I received with the data.
Although in the Color window I can see these classes and their colours under the Breaks Table tab, I would like to create a Legend for this so that I can define what each of the classes means for those I share it with and to print the map for others.
However, when I go to Create Legend, the only layers available are the vector layers on the map. Could someone explain why I'm unable to do this for this data please? It's free UK Land Cover Map 2020 25m rasterised land parcels. Is there a way of doing it that I'm missing?
Many thanks
Jane
------------------------------
Jane Mason
Biological Records Officer (GIS), Suffolk Biodiversity Information Service, UK
------------------------------