12-02-2019 01:45 PM
I was looking for the "opposite" of the CONCATENATE function in GeoMedia.
Let's say we use the CONCATENATE function to create a String composed of different Names (e.g. as a resulting attribute from an analytical merge):
Can you think of an easy way to split this string again at each '$' and to save each name in an own attribute?
In GeoMedia, there is no function doing that (or I overlooked that one).
If I had one single string, I could split it up using e.g. the MID() function, but I can't do this for a whole table. Or if all the names had the same length, it would be easy to create functional attributes that apply to all table entries, but this isn't the case.
Does anyone have an idea? Thank you in advance for any hints you can provide!
Solved! Go to Solution.
12-03-2019 07:40 AM
Have a look at the Generate Functional Attributes operator within Spatial Modeler. Quite a few expression functions are present there beyond those available in GeoMedia, including a SPLIT function that does what you seek.
If you need to run this from GeoMedia, don't forget that you can craft a very simple model and execute it through the Run Spatial Model command. I have attached an example model that you can adapt to your needs. It does nothing more than prompt you to enter any expression, which it will attempt to add as a functional attribute.
If you think it warranted, you can submit an Idea to have this expression function implemented in the Functional Attribute system of GeoMedia Desktop as well. - Hal