def _get_proj4_args(proj4_args): """Create dict from proj4 args.""" from pyresample.utils._proj4 import convert_proj_floats if isinstance(proj4_args, (str, six.text_type)): proj_config = proj4_str_to_dict(str(proj4_args)) else: from configobj import ConfigObj proj_config = ConfigObj(proj4_args) return convert_proj_floats(proj_config.items())
def _get_proj4_args(proj4_args): """Create dict from proj4 args.""" from pyresample.utils._proj4 import convert_proj_floats if isinstance(proj4_args, str): # float conversion is done in `proj4_str_to_dict` already return proj4_str_to_dict(str(proj4_args)) from configobj import ConfigObj proj_config = ConfigObj(proj4_args) return convert_proj_floats(proj_config.items())