getVectorDatasourceById()
function getVectorDatasourceById(datasourceId, datasources): object
find and return vector datasource (internal or external) from passed datasources
Parameters
Parameter | Type |
---|---|
datasourceId | string |
datasources | (object | object | object & object | object & object )[] |
Returns
object
bboxFilter?
optional bboxFilter: [number, number, number, number] | [number, number, number, number, number, number];
Optional, constrain datasource to smaller bbox
classKeys
classKeys: string[];
properties whose values define classes of data.
datasourceId
datasourceId: string;
Unique id of datasource in project
formats
formats: ("fgb" | "json" | "tif" | "subdivided")[];
Available formats
geo_type
geo_type: "vector" | "raster" = geoTypesSchema;
basic geospatial type
idProperty?
optional idProperty: string;
Optional, name of property containing unique ID value for each vector feature
layerName?
optional layerName: string;
Import - Name of layer within vector datasource to extract
metadata?
optional metadata: object;
metadata.description?
optional description: string;
Description of datasource