Thanks to visit codestin.com
Credit goes to networkit.github.io

Class RasterReader

Class Documentation

class RasterReader

Reader for NASA raster data of population. Coordinate transformation into the unit square takes place. Within each grid cell, points get a random location.

Public Functions

RasterReader(double normalizationFactor)
Parameters:

Factor[in] by which population per grid cell should be multiplied

~RasterReader() = default
std::pair<std::vector<double>, std::vector<double>> read(std::string_view path)
Parameters:

path[in] Path and name of file to be read.

Returns:

Vectors of x- and y-coordinates of the points.