'Set the coordinate dimension of this Geometry.'

def _set_coord_dim(self, dim):

    if (dim not in (2, 3)):
        raise ValueError('Geometry    dimension    must    be    either    2    or    3')
    capi.set_coord_dim(self.ptr, dim)
