GeoStreamRepositoryUseDataSets Method (String) |
Namespace: Telogis.GeoBase.Repositories
When setting up a GeoStreamRepository, users can specify the server-side datasets that they wish to use. Datasets can be grouped according to vendor and country, and to be able to use the datasets, the user must have permission to use them. These permissions are set up on the server-side's userinfo.config file. For each <user id> the userinfo.config file lists the <AllowedDataSets> for which the user is entitled to use. Each <DataSet> has a Ref attribute which points to the DataSet groupings (<DataFolder>) in the repository.config file. Furthermore, a default dataset is listed in the <AllowedDataSets> should the user fail to specify a dataset.
For more information on the server-side configuration files, see Configuring the Server, under the GeoStream Security section.
//Set up a GeoStreamRepository with an array of server URL strings GeoStreamRepository myGS = new GeoStreamRepository(myServerURLs); //Set which datasets to use. myGS.UseDataSets("HERE_NA","HERECanada");