duplicated mapping function in group_views.py
This is an ugly hack and this function should be accessed from geometry library.