6.10. Creating other types of resources

6.10.1. Lookup table

To create a lookup table navigate to the group, where you want to create it (root group or another). Press Create resource button and select Lookup table (see Pic. 6.140.).

../../_images/ngweb_create_lookup_en.png

Pic. 6.140. Selecting “Lookup table” resource type

In the opened dialog enter a display name. It will be displayed in the resource list and the Web Map layer tree. “Keyname” field is optional.

../../_images/ngweb_admin_layers_create_lookup_eng_3.png

Pic. 6.141. Lookup table name

Switch from “Resource” tab to the “Lookup table” tab, which is presented on Pic. 6.142.. Add data in the “key-value” format. You can also import a pre-made lookup table from a CSV file.

../../_images/ngweb_creating_a_new_lookuptable_en.png

Pic. 6.142. Lookup table contents

You can also add resource description and metadata on the corresponding tabs. Metadata is used in external apps working with API.

Then click Save. The window will then look as on Pic. 6.143.

../../_images/ngweb_new_resource_eng_2.png

Pic. 6.143. Newly created lookup table

To change anything in a lookup table click Update in the “Action” pane. The resource update dialog will open. Switch to “Lookup table” tab where you can change the table’s contents:

  • add a new key-value pair

  • change a current key-value pair

  • delete a key-value pair

A lookup table can be exported to a CSV file.

You can also connect a lookup table to a field of a vector layer. This way while editing the layer you can choose attribute values from the list. To add a lookup table to the layer, open the Edit dialog and to to the Attributes tab. In the row of the attribute click on the downward arrow in the Lookup table column.

See how to work with lookup tables in our video:

Watch on youtube.

6.10.2. File bucket

Important

It is a special type of resource available in Extended edition of NextGIS on-premise. It allows users to create a storage space for any types of files.

On the Resource tab enter a name for the file bucket. It will be displayed in the administrator interface. “Keyname” field is optional.

../../_images/ngw_name_file_bucket_en.png

Pic. 6.144. File bucket name

In the File bucket tab select files or a ZIP archive to extract files from.

../../_images/ngw_upload_file_bucket_en.png

Pic. 6.145. Uploading files to bucket

The “Description” and “Metadata” of the resource can be configured on the corresponding tabs.

After a file bucket is created, its contents can be modified. You can add and delete individual files. If you select a new ZIP archive, the files extracted from it will replace all files added before.

Files stored in the bucket can be viewed in browser (if the file type allows it), saved one-by-one from the context menu or exported all at once as a ZIP archive.

../../_images/ngw_file_bucket_result_en.png

Pic. 6.146. Resource page of a File bucket with the list of included files