globalmapper.gmobject_to_map

globalmapper.gmobject_to_map(gmobject) map[source]

Takes any globalmapper module object as a parameter and returns a map of its variables. The names of the variables will be the keys and the values of variables will be the values of the map. This function depends on the globalmapper convention of beginning variable names with an “m”, so if you add a new variable to the object without the “m” prefix, it will not show up in the map.

Parameters

gmobject – Any Global Mapper object

Returns

A map of the gm object’s variables and their values

Return type

map