UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

8 lines (7 loc) 541 B
import { Feature, FeatureCollection, GeoprocessingRequestModel, Sketch, SketchCollection, Geometry, GeoprocessingRequest } from "../types/index.js"; /** * Given geoprocessing function request, fetches the GeoJSON, which can also be sketch JSON * @param request * @returns the JSON with geometry type optionally specified by request */ export declare const fetchGeoJSON: <G extends Geometry>(request: GeoprocessingRequest<G> | GeoprocessingRequestModel<G>) => Promise<Feature<G> | FeatureCollection<G> | Sketch<G> | SketchCollection<G>>;