Use ctype and dimensionworld from Geometry.