MapInfo Pro

 View Only
  • 1.  Thematic mapping - how to set conditional formatting

    Posted 03-31-2025 19:43

    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
    ------------------------------


  • 2.  RE: Thematic mapping - how to set conditional formatting

    Posted 03-31-2025 19:44
    Just choose "individual" as your theme type and choose the colors you want :)





  • 3.  RE: Thematic mapping - how to set conditional formatting

    Posted 03-31-2025 20:31

    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
    ------------------------------



  • 4.  RE: Thematic mapping - how to set conditional formatting

    Posted 03-31-2025 20:33
    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. 





  • 5.  RE: Thematic mapping - how to set conditional formatting

    Posted 03-31-2025 20:39

    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
    ------------------------------



  • 6.  RE: Thematic mapping - how to set conditional formatting

    Posted 03-31-2025 21:40
    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. 





  • 7.  RE: Thematic mapping - how to set conditional formatting

    Employee
    Posted 04-01-2025 01:43

    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
    ------------------------------



  • 8.  RE: Thematic mapping - how to set conditional formatting

    Posted 16 days ago

    Thanks, the individual categories worked!



    ------------------------------
    Alexis Ha
    Lyall & Associates
    Burlington MA
    ------------------------------



  • 9.  RE: Thematic mapping - how to set conditional formatting

    Posted 2 days ago
    • 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
    ------------------------------



  • 10.  RE: Thematic mapping - how to set conditional formatting

    Employee
    Posted 2 days ago

    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
    ------------------------------