@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
34 lines (33 loc) • 1.46 kB
TypeScript
import { Georaster, Metric, Geography, VectorDatasource, RasterDatasource } from "../../../src/types/index.js";
import { ProjectClientBase } from "../../../src/index.js";
/**
* Returns Metric array for raster datasource and geography
* @param datasource InternalRasterDatasource that's been imported
* @param geography Geography to be calculated for
* @returns Metric[]
*/
export declare function precalcRasterDatasource<C extends ProjectClientBase>(projectClient: C, datasource: RasterDatasource,
/** Input geography */
geography: Geography,
/** Geography datasource to get geography from */
geogDs: VectorDatasource, extraOptions?: {
/** Alternative path to store precalc data. useful for testing */
newDstPath?: string;
/** Alternative port to fetch data from */
port?: number;
}): Promise<Metric[]>;
/**
* Returns Metric array for raster datasource and geography
* @param raster Georaster parsed with geoblaze
* @param rasterConfig ImportRasterDatasourceConfig, datasource to calculate metrics for
* @param geography Geography to calculate metrics for
* @returns Metric[]
*/
export declare function precalcRasterMetrics(raster: Georaster, datasource: RasterDatasource,
/** Input geography */
geography: Geography,
/** Geography datasource to get geography from */
geogDs: VectorDatasource, extraOptions: {
/** Alternative path to store precalc data. useful for testing */
newDstPath?: string;
}): Promise<Metric[]>;