02-07-2018 07:10 AM
I have imported styles xml files as "GeoMedia SmartClient Style Definition" in my gws style, they are a number of line styles,
I have linear features which have a column called "fcode"
I want to assign a style for each line in the follwing way:
If the style name = the value of the "fcode" column, then give this line that style
so I am searching if there is an expression to do so.
thanks for your support
02-07-2018 09:38 AM
I would say, it's not possible in general (without coding).
If only a small specific part of the style varies it could be possible to define a mapping between the fcode value and the style definition in a style expression(s).
(But in this specific case, you don't need your imported styles - or only one as base style ...).
Maybe someone has more ideas.
02-12-2018 12:47 AM
I guess, the xml import function is only implemented in the GUI. You can't find it as a mehode in an API library.
You can import the styles manually and after the import you can merge the styles from the library by the fcode attribute.
This was my idea.
Or you reprogramm the xml import ...
I don't have a code example at hand, sorry.