GeoMedia Discussions

Search for an answer, post a question, or answer other users' questions in our GeoMedia support discussions. This discussion board is a great way to collaborate with industry peers around the world. It is intended for discussion and support of the GeoMedia Desktop and Add-on applications.
Showing results for 
Search instead for 
Do you mean 
Super Contributor
Posts: 455
Registered: ‎10-12-2015
Accepted Solution

Any workaround to 'flip' data in map window?

I notice an existing ideation board entry to add ability to flip / mirror data -


Wondering if anyone has a workaround to allow it today?

Posts: 146
Registered: ‎05-26-2016

Re: Any workaround to 'flip' data in map window?

For a feature , like a symbol with a rotation , and you want to do in bulk,you can use Update Attributes
and SPIN(Input.geometry,180)


For other features:


You can Mirror/flip Horizontally or vertically in bulk using Functional Attributes (2 queries)


For example have polygon string and Mirror on Y axis around first point in string


Get the coordinates of the points in string

x_pts - X(POINTS(Input.Geometry), ProjectedMeas, Meter)
y_pts - Y(POINTS(Input.Geometry), ProjectedMeas, Meter)


Choose the point you want to Mirror about, i've used Startpoint in this example. Could be centrepoint, or something else.

x_spt - X(STARTPOINT(Input.Geometry), ProjectedMeas, Meter)
y_spt - Y(STARTPOINT(Input.Geometry), ProjectedMeas, Meter)


I'm only going to Mirror about Y horizontal axis, similar syntax for X vertical axis

y_mpt - Output.y_pts-Output.y_spt


The negative sign in front of the 2 is the direction of the flip, ie above or below the axis

PTS - MOVE(POINTS(Input.Geometry), 0, -2*Output.y_mpt, 0, ProjectedMeas)

Mirrored_line - CREATEPOLYLINE(Output.PTS)


You now have the mirrored line in query as secondary geometry


Create a new query to get the mirrored line, which you can save or whatever

Mirrored - FILTERLINEAR(Input.mirrored_line)

Super Contributor
Posts: 455
Registered: ‎10-12-2015

Re: Any workaround to 'flip' data in map window?

Nice - thanks Roland.


Works for simple geometries which I believe is all we need in this case.

Swapped the CREATEPOLYLINE to CREATEPOLYGON and seems good on my test dataset.

If using complex geometries (e.g. collections, polygons with holes etc) will need manual cleanup afterwards.