Operations with datasets | Urbi Pro | Urbi Documentation
Urbi Pro

Operations with datasets

After you upload your own datasets, you can manage them. Available operations depend on how you uploaded the data: as a file or via API.

You can combine all uploaded datasets into groups and move datasets between them: see the Operations with dataset groups instruction.

In the Urbi Pro interface, you can manage only datasets that you uploaded as a file:


To work with a dataset, go to the Main tab and click All datasets or go to the Data tab.

Data tab
  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Edit.
  3. Enter a new dataset name (not longer than 100 characters).
  4. Click Apply.
  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Edit.
  3. In the Description field, enter a text (not longer than 200 characters).
  4. Click Apply.

If the description is too long, only its abstract is displayed by default. To see the full description, hover the cursor over the dataset card:

Tooltip with the full description

If uploaded data contains geometries of the polygon type, you can use them to create your own territorial division. It allows you to create new territory filters (geofilters) and filter any Urbi Pro data not only by standard territory types (regions, districts, settlements, and others) but also by your unique areas.

  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Create a filter by territory.

Now when you filter data by territories, you can select the territories from the uploaded dataset in the Geofilter settings dialog:

Geofilters with polygons
  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Remove a filter by territory.
  3. To confirm deleting, click Delete.

If you uploaded a dataset with point objects, you can add new objects to the dataset or remove existing ones. Lines and polygons cannot be added.

Important

Adding or removing points changes the data in the dataset. Any samples created from the dataset, as well as layers and widgets, automatically reflect the changes.

You can add and remove objects both when creating a layer and after creating it.

  1. To edit a dataset when creating a layer:

    1. Go to the Main or Data tab.
    2. Select the required uploaded dataset.
    3. In the Geofilter settings dialog, select up to 50 territories for which the data sample is created. You can use standard and custom territories, and also build proximity zones and circles on the map. For more information, see the Geofilters section. After you select the territories, click Done.
  2. To edit a dataset after creating a layer:

    1. Go to the Dashboards tab.

    2. Open the required dashboard.

    3. To open a scene, use the arrows Left arrow and Right arrow. If there is only one scene in the dashboard, it opens automatically when you open the dashboard.

    4. To open the layer, click Layers icon and select the required layer.

    5. Click Edit dataset.

      Adding objects to a data sample working with the created layer
  3. To add an object:

    1. Go to the Results pane and click Add object.

      Adding objects to a data sample when creating a layer
    2. Specify data attributes.

      Attributes filling form

      Mandatory fields:

      • Name: required if the uploaded data contains attributes of this type.
      • Location: you can specify coordinates manually or drag New object to the required place on the map.

      If an attribute was configured to use the Multiple choice from the list filter type during data upload, you can specify its value manually or select an existing one from a list in this form.

    3. Click Save.

  4. To delete an object:

    1. Go to the Results pane and select the required object.
    2. Click Delete and confirm deleting.
  5. If you create a layer, click Create layer.

  6. If you work with a created layer, click one of the buttons:

    • Update layer: all changes are saved, and the layer is updated.
    • Create layer: a new layer is created and added to the current dashboard scene.
    • Back to layer: the changes are not saved, and the current dashboard scene is opened.

After creating a layer with a data sample, when you hover the cursor over an item on the map, a tooltip with a short help about the item appears.

A tooltip with the short help about the item

You can customize the list of data attributes that are displayed in the tooltip. By default, the tooltip settings are used in all layers created from this dataset (with the Point, Buildings, Line, and Polygon visualization methods). You can change the settings after creating the layer: see the documentation for the data visualization methods.

  1. Go to the Data tab.

  2. On the required dataset card, click Dataset menu icon and select Edit.

  3. To display the attributes you specify in the tooltip, enable the Tooltip setup option.

    If the option is disabled, the tooltip shows all data attributes from the dataset. The attributes are displayed in the order that was specified during uploading.

  4. Set the list of attributes that will be displayed in the element tooltip. Select the required attributes and change their order if necessary. The available values ​​depend on the data in the sample.

    Configuring a tooltip
  5. In the Tooltip field to the right of the attribute list, a preview of the tooltip on the map is shown. Check the tooltip display and click Apply.

You can share a dataset with other authorized users to view or edit it.

If you use a demo tariff, you cannot grant access to uploaded datasets.

Depending on the access level, the user can perform different operations:

  • View: view the dataset and create data samples from it.

  • Edit: view the dataset, create data samples from it, and also perform any operations available to the dataset owner: rename the dataset; add and change the dataset description; create filters by territory and delete them; add point objects to the dataset or delete them; customize the tooltip with data attributes; grant, edit, and revoke dataset access for other users. If the dataset is edited, the changes are visible to both the owner and all users who have been granted access to it.

    If the user deletes a dataset that they have been granted access to, they lose access to the dataset and all associated layers. The original dataset and access of other users remain unchanged. For more information, see the Deleting a dataset section.

Granting access to a dataset

To grant access to a dataset:

  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Share.
  3. Enter the email address of the user to grant access to and click Add.
  4. Next to the user address, select the access level in the list: View or Edit.
  5. Click Save.
  6. If you need to revoke access from the user, next to the user address, select Delete in the list.

Datasets that have been granted access to are located in the user profile on the Data tab, in the My data dataset group. On the cards of these datasets, the Publicly available tag and the email address of the user who granted access are displayed. If necessary, you can move the dataset to another group.

Important

Deleting the dataset permanently deletes all layers and territory filters associated with it.

If you are the dataset owner and granted access to it to other users, they also lose that data when you delete the dataset. If you delete a dataset that you have been granted access to, the original dataset and access of other users remain unchanged.

  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Delete.
  3. To confirm deleting, click Delete.

Via API, you can manage only datasets that you uploaded using API:

You can delete a dataset uploaded via API only in Urbi Pro interface.


To send requests from the examples below, use the credentials that you received when creating a dataset:

  • Dataset ID (assetId). Also, you can copy the ID in Urbi Pro: go to the Data tab, on the required dataset card, click Dataset menu icon and select Copy ID.
  • Access token for authorization (access_token). Also, you can copy the token in Urbi Pro: click Profile icon in the lower-left corner, go to the Tokens section and copy the value from the Token for dynamic datasets field.

Send a GET request to /dynamic_asset and specify the dataset ID (assetId parameter):

https://pro-api.2gis.ru/dynamic_asset/{assetId}

For more information about the response body, see the API Reference.

Important

If you add a new filter for an existing attribute, the filtering is applied only for new data uploaded after the filter was added. To index all data, add a new attribute along with a new filter.

  1. Send a PUT request to /dynamic_asset:

    https://pro-api.2gis.ru/dynamic_asset
    
  2. In the request body, pass the dataset ID (assetId parameter), dataset name, and other parameters that must be changed in the JSON format.

    For the full list of parameters, see the API Reference.

You can share a dataset with other authorized users to view or edit it.

If you use a demo tariff, you cannot grant access to uploaded datasets.

Depending on the access level, the user can perform different operations:

  • View: view the dataset, create data samples from it, and get datasets parameters.

  • Edit: view the dataset; create data samples from it; get and change dataset parameters; delete objects from the dataset (all or several); grant, edit, and revoke dataset access for other users. If the dataset is edited, the changes are visible to both the owner and all users who have been granted access to it.

    If the user deletes a dataset that they have been granted access to, they lose access to the dataset and all associated layers. The original dataset and access of other users remain unchanged. For more information, see the Deleting a dataset section.

Granting access to a dataset

To grant access to a dataset:

  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Share.
  3. Enter the email address of the user to grant access to and click Add.
  4. Next to the user address, select the access level in the list: View or Edit.
  5. Click Save.
  6. If you need to revoke access from the user, next to the user address, select Delete in the list.

Datasets that have been granted access to are located in the user profile on the Data tab, in the My data dataset group. On the cards of these datasets, the Publicly available tag and the email address of the user who granted access are displayed. If necessary, you can move the dataset to another group.

  1. Send a DELETE request to /dynamic_asset

    https://pro-api.2gis.ru/dynamic_asset/{assetId}/data
    
  2. In the request body, pass the dataset ID (assetId parameter) and a list of object IDs in the JSON format.

    For more information, see the API Reference.

Send a DELETE request to /dynamic_asset and specify the dataset ID (assetId parameter):

https://pro-api.2gis.ru/dynamic_asset/{assetId}/data/all

For more information, see the API Reference.

Important

Deleting the dataset permanently deletes all layers associated with it.

If you are the dataset owner and granted access to it to other users, they also lose that data when you delete the dataset. If you delete a dataset that you have been granted access to, the original dataset and access of other users remain unchanged.

  1. Go to the Data tab.
  2. On the required dataset card, click Dataset menu icon and select Delete.
  3. To confirm deleting, click Delete.