@igo2/geo
Version:
54 lines (53 loc) • 2.36 kB
TypeScript
import type { DataSourceOptions } from '../datasource/shared/datasources/datasource.interface';
import type { WFSDataSourceOptions } from '../datasource/shared/datasources/wfs-datasource.interface';
import type { WMSDataSourceOptions } from '../datasource/shared/datasources/wms-datasource.interface';
import type { WMTSDataSourceOptions } from '../datasource/shared/datasources/wmts-datasource.interface';
import type { ArcGISRestDataSourceOptions } from './../datasource/shared/datasources/arcgisrest-datasource.interface';
/**
* Generate a id from it's datasource options.
* @param options Data source options
* @returns A id
*/
export declare function generateIdFromSourceOptions(options: DataSourceOptions): string;
/**
* Generate a id from WMS data source options
* @param options WMS data source options
* @returns A md5 hash of the the url and layers
*/
export declare function generateWMSIdFromSourceOptions(options: WMSDataSourceOptions): string;
/**
* Generate a id from WMTS data source options
* @param options WMTS data source options
* @returns A md5 hash of the the url and layer
*/
export declare function generateWMTSIdFromSourceOptions(options: WMTSDataSourceOptions): string;
/**
* Generate a id from XYZ data source options
* @param options XYZ data source options
* @returns A md5 hash of the the url and layer
*/
export declare function generateXYZIdFromSourceOptions(options: WMTSDataSourceOptions): string;
/**
* Generate a id from feature data source options
* @param options XYZ data source options
* @returns A md5 hash of the the url and layer
*/
export declare function generateFeatureIdFromSourceOptions(options: WMTSDataSourceOptions): string;
/**
* Generate a id from feature data source options
* @param options XYZ data source options
* @returns A md5 hash of the the url and layer
*/
export declare function generateWfsIdFromSourceOptions(options: WFSDataSourceOptions): string;
/**
* Generate a id from ArcGIS Rest data source options
* @param options ArcGIS Rest data source options
* @returns A md5 hash of the url and layers
*/
export declare function generateArcgisRestIdFromSourceOptions(options: ArcGISRestDataSourceOptions): string;
/**
* Generate a unique id
* @returns A uuid
*/
export declare function generateId(): string;
export declare function standardizeUrl(url: string): string;