public IEnumerable <DEMFileSource> GetCoveredFileSources(DEMDataSet dataset, BoundingBox bbox) { throw new NotImplementedException(nameof(NasaGranuleFileService)); }
/// <summary> /// Centers a set of points on origin, when their bbox is known /// </summary> /// <param name="points"></param> /// <param name="bbox"></param> /// <returns></returns> public static IEnumerable <GeoPoint> CenterOnOrigin(this IEnumerable <GeoPoint> points, BoundingBox bbox, bool centerOnZ = false) { //Logger.Info("CenterOnOrigin..."); double xOriginOffset = bbox.xMax - (bbox.xMax - bbox.xMin) / 2d; double yOriginOffset = bbox.yMax - (bbox.yMax - bbox.yMin) / 2d; //double zOriginOffset = bbox.zMax - (bbox.zMax - bbox.zMin) / 2d; points = points.Translate(-xOriginOffset, -yOriginOffset, centerOnZ ? -bbox.zMin : 0); // Set minZ = 0 return(points); }