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)
Create ``VolumeName`` from its byte representation.
dataset/ETHPy150Open django/django/django/contrib/gis/gdal/geometries.py/OGRGeometry._set_coord_dim--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/volume/service.py/VolumeName.from_bytes