03-09-2018 01:47 PM
I've made a spatial model which calculates a value based on the % of the area of a feature that's intersected by other feature. For example, if the target area covers 50% of the source area, then it has 50% of the source value.
If I hard-code the field that should be used as reference to do the calculation the model works without issues, but I want to let the user choose the field which will serve as data source.
Is it possible to enable a combo box listing all the fields from a feature class in GeoMedia Run Spatial Model interface?
The gmdx I've setup to calculate a population based on area intersection is attached to this post. ( I know it doesn't take into accoutn if the population distribution is uneven over the area, but it works for certain scenarios )
Solved! Go to Solution.
03-09-2018 02:38 PM - edited 03-09-2018 02:39 PM
Bruno, it is not currently possible, as you have clearly begun to guess. We know that this is a necessary area of improvement. We have already invested time there, and plan to spend more, but achieving this is unexpectedly difficult for two reasons. One is the current command architecture, and the other is that in Spatial Modeler, ports that receive attribute names are simply typed as String - there is no concept of an Attribute data type in SM. This means that in GeoMedia, we too only know that the parameter is a string, and don't know what kind of user interface to present. You'll note that even in the Spatial Model Editor user interface, with the Buffer Zones operator, the Distance port (which can take either an attribute name or a numeric distance) is only known as a String, and the UI that pops up if you double-click the port does not present a list of attributes even there. When you double-click the operator itself and get a special operator-level UI, that dialog knows about all the ports, how they work together, and what role they play - but this level of user interface that is built-in to the SME environment is unavailable to us in RSM. I can't offer much hope for a near-term solution, but I do think it would be worth logging an Idea on the ideation board to see if others also think it important. - Hal