internal void Run(Microsoft.Extensions.DependencyInjection.ServiceProvider serviceProvider) { //======================= // Normal map Console.WriteLine("Height map..."); var bbox = GeometryService.GetBoundingBox(_bbox); HeightMap hMap = _elevationService.GetHeightMap(bbox, DEMDataSet.SRTM_GL3); var coords1 = hMap.Coordinates.ToList(); var coords2 = hMap.Coordinates.ToList(); Logger.RestartPerf("Projection with count"); for (int i = 0; i < 5; i++) { coords2.ReprojectTo(4326, Reprojection.SRID_PROJECTED_MERCATOR, coords2.Count).ToList(); } Logger.StopPerf("Projection with count"); Logger.RestartPerf("Projection without count"); for (int i = 0; i < 5; i++) { coords1.ReprojectTo(4326, Reprojection.SRID_PROJECTED_MERCATOR, null).ToList(); } Logger.StopPerf("Projection without count"); }
public ServiceScope(Microsoft.Extensions.DependencyInjection.ServiceProvider scopedProvider) { this._scopedProvider = scopedProvider; }