@loaders.gl/wms
Version:
Framework-independent loaders for the WMS (Web Map Service) standard
60 lines • 2.53 kB
TypeScript
import type { Schema, GeoJSONTable } from '@loaders.gl/schema';
import type { DataSourceOptions, VectorSourceMetadata, GetFeaturesParameters, VectorSource } from '@loaders.gl/loader-utils';
import { DataSource } from '@loaders.gl/loader-utils';
export type ArcGISImageServiceQueryOptions = {
returnGeometry: boolean;
where: '1%3D1';
outSR: 4326;
outFields: string | '*';
inSR: 4326;
geometry: `${-90}%2C+${30}%2C+${-70}%2C+${50}`;
geometryType: 'esriGeometryEnvelope';
spatialRel: 'esriSpatialRelIntersects';
geometryPrecision: number;
resultType: 'tile';
f?: 'geojson';
};
export type ArcGIFeatureServerSourceOptions = DataSourceOptions & {
'arcgis-feature-server'?: {};
};
/**
* @ndeprecated This is a WIP, not fully implemented
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm
*/
export declare const ArcGISFeatureServerSource: {
readonly name: "ArcGISFeatureServer";
readonly id: "arcgis-feature-server";
readonly module: "wms";
readonly version: "0.0.0";
readonly extensions: [];
readonly mimeTypes: [];
readonly type: "arcgis-feature-server";
readonly fromUrl: true;
readonly fromBlob: false;
readonly defaultOptions: {
readonly url: never;
readonly 'arcgis-feature-server': {};
};
readonly testURL: (url: string) => boolean;
readonly createDataSource: (url: string, options: ArcGIFeatureServerSourceOptions) => ArcGISVectorSource;
};
/**
* ArcGIS ImageServer
* Note - exports a big API, that could be exposed here if there is a use case
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm
*/
export declare class ArcGISVectorSource extends DataSource<string, ArcGIFeatureServerSourceOptions> implements VectorSource {
protected formatSpecificMetadata: Promise<any>;
constructor(url: string, options: ArcGIFeatureServerSourceOptions);
/** TODO - not yet clear if we can find schema information in the FeatureServer metadata or if we need to request a feature */
getSchema(): Promise<Schema>;
getMetadata(options: {
formatSpecificMetadata: any;
}): Promise<VectorSourceMetadata>;
getFeatures(parameters: GetFeaturesParameters): Promise<GeoJSONTable>;
protected _getFormatSpecificMetadata(): Promise<any>;
}
/** Sample metadata
* @see https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm
*/
//# sourceMappingURL=arcgis-feature-source.d.ts.map