10.2. copro.utils.get_geodataframe

copro.utils.get_geodataframe(config, root_dir, longitude='longitude', latitude='latitude', crs='EPSG:4326')[source]

Georeferences a pandas dataframe using longitude and latitude columns of that dataframe.

Parameters
  • config (ConfigParser-object) – object containing the parsed configuration-settings of the model.

  • root_dir (str) – path to location of cfg-file.

  • longitude (str, optional) – column name with longitude coordinates. Defaults to ‘longitude’.

  • latitude (str, optional) – column name with latitude coordinates. Defaults to ‘latitude’.

  • crs (str, optional) – coordinate system to be used for georeferencing. Defaults to ‘EPSG:4326’.

Returns

geo-referenced conflict data.

Return type

geo-dataframe