public LineSegment map(MercatorProjection projection) { var x1 = projection.project(start); var x2 = projection.project(end); return(new LineSegment(x1, x2)); }
public Configuration() { background = Color.FromArgb(255, 255, 255, 255); output = "output.png"; gradient = "C:\\heatmap\\g.png"; //path to g.png decay = 0.95; projection = new MercatorProjection(); colormap = new ColorMap(image: Image.FromFile(gradient)); radius = 5; width = 5000; height = 5000; kernel = new LinearKernel(radius); load_gpx(); }