- implemented feature request from issue #28
 - TODO: fix coordinate system relation code duplication