geodesic.boson.dataset.Dataset.from_arcgis_layer#
- static Dataset.from_arcgis_layer(name, url, feature_limit=None, credential=None, insecure=False, middleware={}, cache={}, tile_options={}, domain='*', category='*', type='*', **kwargs)[source]#
Creates a new Dataset from an ArcGIS Online/Enterprise Service URL.
- Parameters:
name (str) – name of the Dataset to create
url (str) – the URL of the Feature, Image, or Map Server. This is the layer url, not the Service url. Only the specified layer will be available to the dataset
feature_limit (int | None) – the max number of features to return in a single page from a search. Defaults to whatever ArcGIS service’s default is (typically 2000)
credential (str | None) – the name or uid of a credential required to access this. Currently, this must be the client credentials of an ArcGIS OAuth2 Application. Public layers do not require credentials.
insecure (bool) – if True, will not verify SSL certificates. This is not recommended for production use.
middleware (MiddlewareConfig | list) – configure any boson middleware to be applied to the new dataset.
cache (CacheConfig) – configure caching for this dataset
tile_options (TileOptions) – configure tile options for this dataset
domain (str) – domain of the resulting
Object
category (str) – category of the resulting
Object
type (str) – the type of the resulting
Object
**kwargs – additional properties to set on the new
Dataset
- Returns:
a new Dataset.
- Return type:
Examples
>>> ds = Dataset.from_arcgis_layer( ... name="my-dataset", ... url="https://services9.arcgis.com/ABC/arcgis/rest/services/SomeLayer/FeatureServer/0", ... credential="my-arcgis-creds" ... ) >>> ds.save()