Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 9
Registered: ‎02-20-2018

Load Style in Unique Value Thematic

[ Edited ]

Hi guys,

 

I am new to Geomedia, 

I am trying to make a unique value thematic based on values of a certain column, moreover I have to load Styles coming from saved styles in the geoworkspace in a subfolder called "m_Styles" and I want to check "match style names with thematic classes".

 

I already made a Thematic Classification Service and made the classification as follows:

PView.ThematicClassificationService thmtcClsfctionSrvc =
            this.MyApp.CreateService("GeoMedia.ThematicClassificationService") as PView.ThematicClassificationService;
        
thmtcClsfctionSrvc.LegendEntry = LE;
thmtcClsfctionSrvc.AttributeFieldNames = "Ref";

PClient.GMCollection objUVColl = new PClient.GMCollection();
object obj = objUVColl;
thmtcClsfctionSrvc.CreateUniqueValueClasses(out obj, PView.UniqueValueClassificationTechniqueConstants.gmtcsClassifyByDataValues, PView.AdditionalIncludeItemsConstants.gmtcsIncludeNone,null, null, null);
objUVColl = obj as PClient.GMCollection;

thmtcClsfctionSrvc.ClassifyLegendEntry(objUVColl);

Now I want to know how to make this thematic legend read its style from the style subfolder named "my_Styles" based on matching names with thematic classes, what should I use is it styledefinition?

 

Thx

John

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.