Gets capabilities.

        This is a simulation of a GetCapabilities WFS request. Returns a python dict
        with LatLongBoundingBox and Name keys defined.

def get_capabilities(self):
        """
        Gets capabilities.

        This is a simulation of a GetCapabilities WFS request. Returns a python dict
        with LatLongBoundingBox and Name keys defined.
        """
        d = {}

        ext = self._layer.GetExtent()       # @TODO if a filter is on this may give different results
        llbb = [round(float(v), 4) for v in ext]

        d['LatLongBoundingBox'] = box(llbb[0], llbb[2], llbb[1], llbb[3])
        d['Name']               = self._file.split('/')[-1].split('.')[0]

        return d