@ciag/sentinel-hub-wms
Version:
a API to create the sentinel ogs requests, and tools to apply on the data
50 lines (49 loc) • 2.55 kB
TypeScript
import { Feature, Polygon, FeatureCollection } from "geojson";
import { Observable } from 'rxjs';
import { getFromSentinelOptions, ICroppedImage } from "./interfaces";
import { LagLngXY } from "./LagLngXY";
export { WMSParameters } from "./WMSParameters";
export declare namespace SentinelHubWms {
function latLngToXYTool(geoJson: GeoJSON.FeatureCollection<Polygon> | Feature<Polygon>): LagLngXY[];
/**
* @description used to get sentinel's satellite image of a polygon, with the image cropped for the polygon
*/
function getShapeFromSentinel(feature: Feature<Polygon>, uuid: string, options: getFromSentinelOptions): Promise<ICroppedImage>;
/**
* @description used to get sentinel's satellite image of a polygon, with the image cropped for the polygon
* `RxJs Version`
*/
const getShapeFromSentinelAsync: (feature: Feature<Polygon, {
[name: string]: any;
}>, uuid: string, options: getFromSentinelOptions) => Observable<ICroppedImage>;
/**
* @description used to get multiple sentinel's satellite image of a collection of polygons, with the image cropped for the polygon
*/
function getShapesFromSentinel(featureCollection: FeatureCollection<Polygon>, uuid: string, options: getFromSentinelOptions): Promise<ICroppedImage[]>;
/**
* @description used to get multiple sentinel's satellite image of a collection of polygons, with the image cropped for the polygon
* `RxJs Version`
*/
const getShapesFromSentinelAsync: (featureCollection: FeatureCollection<Polygon, {
[name: string]: any;
}>, uuid: string, options: getFromSentinelOptions) => Observable<ICroppedImage>[];
/**
* @description used to get the sentinel's satellite image of a square
*/
function getImage(uuid: string, bbox: [number[], number[]], options: getFromSentinelOptions): Promise<any>;
/**
* @deprecated `new code in development`
* @description used to find and remove non organic pixels in the satellite data (remove roads/houses/...)
* @beta
*/
function getDangerZone(feature: Feature<Polygon>, image: string | HTMLImageElement): Promise<GeoJSON.FeatureCollection<Polygon>>;
/**
* @deprecated `new code in development`
* @description Crop user provided image to shape
* @beta
*/
function createShapeAsImage(feature: Feature<Polygon>, img: string, latLongXY: LagLngXY): Promise<{
img: string;
LatLng: [number[], number[]];
}>;
}