Skip to content

Support

How to link data tables to a layer

In the CartoVista platform, you can import tabular data and link it to a GIS layer. All you need to do is use a unique identifier that is the same for both files. The join between the two files will…

In the CartoVista platform, you can import tabular data and link it to a GIS layer. All you need to do is use a unique identifier that is the same for both files. The join between the two files will be done using this shared unique identifier.

If you haven’t imported your files to your CartoVista workspace, here’s how to do it.

Import your GIS file

Import your GIS layer to your workspace by dragging and dropping your GIS file in the drop area of your Data Gallery. See our dedicated article to learn more.

Screenshot showing drag and drop data in CartoVista when link data tables to a layer

Import your tabular data

Requirements for CSV files

The structure of your file should be aligned with CSV standards:

  • the first row contains the headers
  • each of the following rows contains a separate record
  • each column value or header is separated by a comma (other delimiters are not supported)
  • each row has the same number of columns.
  • your file should contain a unique identifier identical to the unique identifier of your GIS layer.

Requirements for Excel files

Your file should contain the headers and the values to be imported only. Cell A1 should contain your first header, and A2 your first value. Any other metadata or document titles should be removed.

Your file should contain a unique identifier identical to the unique identifier of your GIS layer.

For instance, the following file is not valid:

Screenshot showing invalid excel join in CartoVista when link data tables to a layer

This file is valid:

Screenshot showing valid excel join in CartoVista when link data tables to a layer

Drag and drop or select your file

Navigate to the Data Gallery, drag and drop your file to the drop zone, or click on “Browse files” to select your file from your File Explorer.

Screenshot showing drag and drop data in CartoVista when link data tables to a layer

A pop-up window shows you the process of the table upload. Once the upload is completed, you can rename your table and select the attribute columns to be imported, then click Next.

Screenshot showing define data details joined in CartoVista when link data tables to a layer

Set layer properties

The next step allows you to edit column properties:

Screenshot showing define properties of columns joined in CartoVista when link data tables to a layer

Property nameProperty descriptionColumn type
NameThis is how the column will be displayed in the mapAll types
Data typeNumeric, String, Image URL, Date/Time.All types
MappableWhen set to false, this column won’t be visible in the map.All types
Aggregation typeThe aggregation method to be used in charts and time-based data.
- Supported aggregation types for Strings, Image URL and Date/Time are: Count, None.
- Supported aggregation types for Numeric are: Average, Count, Max, Min, Sum, None.

When set to None, the column cannot be aggregated and will be set to an N/A value on aggregation.
All types
DescriptionFree text to describe your column. The description is only accessible from the Data Gallery in the Column Properties.All types
MetadataFree text to add metadata to your column. The metadata are only accessible from the Data Gallery in the Column Properties.All types
PrecisionThe number of decimals to display. Any additional precision is still stored but not displayed, meaning you can increase the precision after the import. The default is 2.Numeric
UnitsUnits to be displayed next to the value in the map data tips, info tool, table view, charts, legend, etc.Numeric
Unit placementUnit placement after or before the value.Numeric
Not available valuesEnable N/A values to convert a value of this column to N/A.Numeric
Value to convertThe value to be converted to N/A. This property is only accessible when Not available values are enabled.Numeric

Click Save to validate the column properties. The next step allows you to choose what to import this table. Select “Link data to a layer”.

Screenshot showing what would you like to do in CartoVista when link data tables to a layer

You can then search and select your GIS layer from the first drop-down menu

Screenshot showing layer icon link in CartoVista when link data tables to a layer

, then choose the identifier of your GIS layer

Screenshot showing identifier icon link in CartoVista when link data tables to a layer

and then select the same identifier from your data table

Screenshot showing identifier icon link in CartoVista when link data tables to a layer

.

Screenshot showing link data upload in CartoVista when link data tables to a layer

If you have already imported your files to your CartoVista workspace, here’s how you can link them.

  1. Navigate to your Data Gallery and to the layer you want to link your data table to.

  2. Click on your layer’s name or

    Screenshot showing i icon in CartoVista when link data tables to a layer

    to open the details panel.

  3. Click on the “…” icon to open the Actions menu.

  4. Select “Link Data”

Screenshot showing link data action in CartoVista when link data tables to a layer

You can then choose the identifier of your GIS layer

Screenshot showing identifier icon link in CartoVista when link data tables to a layer

, then search and select data table from the second drop-down menu

Screenshot showing data table icon link in CartoVista when link data tables to a layer

then select the same identifier from your data table

Screenshot showing identifier icon link in CartoVista when link data tables to a layer

.

Screenshot showing link data galery in CartoVista when link data tables to a layer

Before validating the join with the link button, check the number of records linked match your data in the top right-hand corner.

You can also start from your data table and link your layer to it, it works both ways!

Results

Once your 2 datasets have been linked together, you can access the columns from your data table in any map where the layer is used.

In the Data Gallery, in the “Related data” tab of the details panel of your layer, you can see that the data table is now joined to your layer.

Screenshot showing joined layer result data galery in CartoVista when link data tables to a layer

In your map, you can create a thematic analysis using any of the joined columns seamlessly. In the data table panel, you can also show the joined columns. Click on the “Settings”, then open the joined data table section and check any of the columns you want to add, then click OK.

Screenshot showing map data table panel settings in CartoVista when link data tables to a layer

Screenshot showing map data table panel settings add joined data in CartoVista when link data tables to a layer

Search documentation