added transform method that transforms the coordinates of a geometry to a new coordinatesystem