Skip to content

Support

Data Types in CartoVista

CartoVista supports the use of 4 major data types in the data columns of any given dataset: The dataset can contain any combination of these 4 data types in the data columns. CartoVista allows users…

CartoVista supports the use of 4 major data types in the data columns of any given dataset:

  1. Strings
  2. Numerics (both, floats and integers)
  3. Images
  4. Date/Time

The dataset can contain any combination of these 4 data types in the data columns.

CartoVista allows users to specify the data types of their data columns when importing their data or in the data gallery.

Strings

String data is defined as a sequence of characters that can be composed of letters, or numbers, symbols, or a combination of the three.

In CartoVista, data columns can take the form of a string or be converted to string data if they are in another data format.

An data column is of string format in the platform when the following symbol is selected or assigned prior to import:

Screenshot showing string in CartoVista when data types in cartovista

Numeric

Numeric data is defined as data in the form of numbers. These numbers can take the form of integers or floats with values ranging from negative infinity to infinity.

In CartoVista, data columns can take the form of numeric data or be converted to numerical data if the attribute was as a string prior to import. Strings not containing numbers will be converted to null values. Meaning that string data that contains strictly numbers can also be converted to numeric data upon import.

An attribute is of numeric format in the platform when the following symbol is selected or assigned prior to import:

Screenshot showing numeric in CartoVista when data types in cartovista

Additionally, the precision of the numeric data can be specified to limit the number of decimal places for the attribute values by specifying the precision and enforcing a round to the specified precision as shown below:

Screenshot showing numeric precision in CartoVista when data types in cartovista

Units for this data type may also be specified to give context to the numerical data in the attribute. The unit placement can be before or after the values in the data columns.

ImageURL

The ImageURL data type converts URL entries containing links to images in a data column to visible images in the datatips of the map panel when the attribute is selected in the data tip dropdown menu.

Screenshot showing image url in CartoVista when data types in cartovista

Result on the map after selecting the Image URL data type in the data tips of the layer:

Screenshot showing image popup in CartoVista when data types in cartovista

Date/Time

In CartoVista, data columns can take the form of date/time data if the attribute type is set to the date/time format prior to exporting into the platform.

The accepted date/time format is yyyy-mm-dd.

Strings can be converted to date/time format when exporting the data columns if the yyyy-mm-dd format is detected upon import.

Otherwise if the columns are not in the yyyy-mm-dd format, the following pop-up will appear when trying to convert the data type of the column to date/time:

Screenshot showing date time in CartoVista when data types in cartovista

Variable Aggregation, Description, Metadata & Mappability

After handling the data type parameters for a feature, the aggregation method, variable description, metadata, and mappability parameters can be set for the attribute.

  1. Aggregation

The aggregation technique for the variable;

  • Numeric: aggregate data by average, count, max, min, or sum of attribute or none 

Screenshot showing aggregation in CartoVista when data types in cartovista

  • String, ImageURL + Date/Time: aggregate data by count or none

Screenshot showing descriptio metadata in CartoVista when data types in cartovista

  1. Description & Metadata

A detailed description and metadata of a variable can be written to provide an explanation of what the variable represents

  1. Mappability

Allows the data column to be used for thematic analysis (link to thematic analysis article)

Changing Data Types in the Data Gallery

Data types for a data column can be changed in the data gallery for a layer’s table.

Screenshot showing changing data types in CartoVista when data types in cartovista

Search documentation