/// <summary> /// Gets the grid cell feature statistics combined with species observation counts. /// </summary> /// <param name="userContext">User context.</param> /// <param name="gridSpecification">The grid specification: bounding box, grid cell size, etc.</param> /// <param name="searchCriteria">The species observation search criteria.</param> /// <param name="featureStatistics">Information about requested information from a web feature service.</param> /// <param name="featuresUrl">Address to data in a web feature service.</param> /// <param name="featureCollectionJson">Feature collection json.</param> /// <param name="coordinateSystem">Coordinate system used in returned grid.</param> /// <returns>A list with combined result from GetGridSpeciesCounts() and GetGridCellFeatureStatistics().</returns> public IList <IGridCellCombinedStatistics> GetGridCellFeatureStatisticsCombinedWithSpeciesObservationCounts( IUserContext userContext, IGridSpecification gridSpecification, ISpeciesObservationSearchCriteria searchCriteria, FeatureStatisticsSummary featureStatistics, String featuresUrl, String featureCollectionJson, ICoordinateSystem coordinateSystem) { return(DataSource.GetGridCellFeatureStatisticsCombinedWithSpeciesObservationCounts(userContext, gridSpecification, searchCriteria, featureStatistics, featuresUrl, featureCollectionJson, coordinateSystem)); }
/// <summary> /// Get information about spatial features in a grid representation inside a user supplied bounding box. /// </summary> /// /// <param name="userContext">User context.</param> /// <param name="featureStatistics">Information about what statistics are requested from a web feature /// service and wich spatial feature type that is to be measured</param> /// <param name="featuresUrl">String with the requested url.</param> /// <param name="featureCollectionJson">Feature collection as json string.</param> /// <param name="gridSpecification">Specifications of requested grid cell size, requested coordinate system /// and user supplied bounding box.</param> /// <param name="coordinateSystem">Coordinate system used in geometry search criteria.</param> /// <returns>Statistical measurements on spatial features in grid format.</returns> public List <IGridCellFeatureStatistics> GetGridFeatureStatistics(IUserContext userContext, FeatureStatisticsSummary featureStatistics, String featuresUrl, String featureCollectionJson, IGridSpecification gridSpecification, ICoordinateSystem coordinateSystem) { //Todo: Check data for weird combinations like area of point features and such. Use existing check-methods. return(DataSource.GetGridCellFeatureStatistics(userContext, featureStatistics, featuresUrl, featureCollectionJson, gridSpecification, coordinateSystem)); }