Sure, you can do that.
I'd recommend using either the Cond()
function or the IIf()
function.
I'd use IIf() if you only have a few values:
IIf(RESI_UNDEV_ROAD_Catchment_Types In ("road", "resi", "undev"), RESI_UNDEV_ROAD_Catchment_Types, "Others")
The expression above checks the values in the column RESI_UNDEV_ROAD_Catchment_Types
against 3 known values. If the value is one of these, we will keep that. In all other cases, we will use "Others"
.
You specify the expression in the Create Thematic Map - Step 2 of 3 dialog. In the Field list, select Expression... and then type in or paste the expression from above. Make sure that I have spelled the column name correctly.
You can read more about these functions here:
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------
Original Message:
Sent: 05-13-2025 19:41
From: Alexis Ha
Subject: Thematic mapping - how to set conditional formatting
- Is there a way to make layers that don't satisfy my conditions (i.e.layers that aren't road,resi, undev) to all be grey?
- The trouble i have now is i have alot of layers that aren't road/resi/undev, and they're all different colours. It just makes it easier to quickly identify which items aren't satisfying my conditions if they're all grey, rather than having multiple colours.
------------------------------
Alexis Ha
LYALL & ASSOCIATES PTY LTD & SCOTT BUTTON & ASSOCIATES PTY LIMITED
Burlington MA
Original Message:
Sent: 04-01-2025 01:42
From: Peter Møller
Subject: Thematic mapping - how to set conditional formatting
Steve is right.
Make sure that you check the Save Individual Value Categories when you save your thematic template.
And when you are using the template afterward, make sure that you check the option Use Individual Categories.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
Original Message:
Sent: 03-31-2025 21:39
From: Steve Wallace
Subject: Thematic mapping - how to set conditional formatting
I'm not at my computer right now, but I think there is a "save names" option in the Save Thematic dialog. That might help.
Original Message:
Sent: 3/31/2025 8:39:00 PM
From: Alexis Ha
Subject: RE: Thematic mapping - how to set conditional formatting
Ah bummer.
I was hoping to use Thematic Map templates to minimize the need for extensive queries.
I hope MapInfo can address this issue.
------------------------------
Alexis Ha
Lyall & Associates
Burlington MA
Original Message:
Sent: 03-31-2025 20:33
From: Steve Wallace
Subject: Thematic mapping - how to set conditional formatting
When I have these situations I just run several queries and add each of them as a layer to the map, and use the style override for each layer.
Original Message:
Sent: 3/31/2025 8:31:00 PM
From: Alexis Ha
Subject: RE: Thematic mapping - how to set conditional formatting
HI Steve,
Is there a way to hardwire it in, e.g. "undev" to be coloured green??
Because when i now add a new catchment type (i.e. "test") it shifts the colouring, and "undev" is no longer the right format i want (see picture)

------------------------------
Alexis Ha
Lyall & Associates
Burlington MA
Original Message:
Sent: 03-31-2025 19:44
From: Steve Wallace
Subject: Thematic mapping - how to set conditional formatting
Just choose "individual" as your theme type and choose the colors you want :)
Original Message:
Sent: 3/31/2025 7:43:00 PM
From: Alexis Ha
Subject: Thematic mapping - how to set conditional formatting
Hi All,
I'm trying to create a thematic map template that can colour objects a certain colour based on it's field value. However, i'm unsure how to go about it.
I want:
- "RESI" catchment type to be PINK
- "ROAD" catchment type to be YELLOW
- "UNDEV" catchment type to be GREEN
However, I also want to be able to change this if needed (e.g client wants "RESI" to be blue in the future)
I've attached in my google drive link:
- Subcatchments with the fields i want to colour (field is "Catchment type")
- my current thematic map template ("RESI_UNDEV_ROAD_Catchment_Types.thm")
- Screenshots of my process to create thematic map
Link to files: Thematic Mapping - Google Drive (https://drive.google.com/drive/folders/1f0uRm78WMH9IalTe6rJZZhkOVe9A8QCk?usp=sharing
Google Drive | remove preview |
 | Thematic Mapping - Google Drive | This browser version is no longer supported. Please upgrade to a supported browser. | View this on Google Drive > |
|
|
My Mapinfo Version is: Mapinfo Pro Version 15.0.3, release build 404
------------------------------
Alexis Ha
Lyall & Associates
Burlington MA
------------------------------