MIPro determines the theme style applied using the dominant object type in the table.
We know the count of each object type in a table when you select a thematic template, so if the table contains more Polylines than Regions, and you select a Region based theme template, it will treat the theme with Polyline styles, etc. I'm assuming we are looking back at the base table the query was derived from when setting the thematic styles. I would suggest separating these objects out into their own tables as a workaround if you can. We can look at this code and see if there is a way to do this better with Query tables, but it could get a bit hairy with changing this. Perhaps we need to revisit how\why we have to use the dominant object type in the table to determine styles with theme templates.
Not a good practice for GIS in general to mix object types in a table, but sometimes it can't be avoided, and MIPro lets you do this obviously if required. I don't believe this has changed since we implemented theme templates back in version 4.x or 5.x (I forget which version exactly).
Thx,
-Bill
------------------------------
Bill Wemple
Principal Software Engineer, Quality Management
Precisely, Inc
precisely.com
------------------------------
Original Message:
Sent: 05-11-2021 22:01
From: Kalu Ribush
Subject: Creating Thematics on Query Results based on Object Type
I have a table which contains both plines and regions (but mostly plines)
I want to create a two seperate thematic layers, one on the pline elements and another on the region elements.
I run a two queries to seperate the object types into two layers (eg. str$(obj) = "pline" / str$(obj) = "region")
I can create a thematic layer on the plines, but when I try and create a thematic layer on the region query, it treats the layer as if it's got plines in it. I can can't choose the style for regions in the thematic settings.
Is there anyway around this? Can this be fixed, so that when I try and create an individual Region Thematic, it lets me choose region styles (like fill pattern)?
------------------------------
Kalu Ribush
Manager Mapping Team
Department of Transport
Victoria, Australia
------------------------------