Skip to content

Support

How to import tabular data with latitude / longitude (from Excel or CSV)

Supported formats Here is the list of supported formats by CartoVista. In this article, we’ll focus on tabular data. Type Format Extension Vector ESRI Shapefile .ZIP MapInfo Tables .ZIP KML file…

Supported formats

Here is the list of supported formats by CartoVista. In this article, we’ll focus on tabular data.

TypeFormatExtension
VectorESRI Shapefile.ZIP
MapInfo Tables.ZIP
KML file.ZIP
SpatiaLite (.sqlite, .db3).ZIP
Geopackage.ZIP
GeoJSON.geojson
PIX.ZIP
GPX.ZIP
Tabular DataExcel.XLSX / .XLS
CSV.CSV
Raster DataTagged Image File Format.TIFF / .TIF

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 one of the following:
    • coordinate information: a column with latitude value, and a column with longitude values, in decimal degrees.
    • address information: one or multiple columns with location information. The more information your file contains, the more precise the geolocation will be. If your location information contains precise street address information, don’t forget to add the country information for instance.

If your file contains address information and no coordinates, please refer to this article.

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 one of the following:

  • coordinate information: a column with latitude value, and a column with longitude values, in decimal degrees.
  • address information: one or multiple columns with location information. The more information your file contains, the more precise the geolocation will be. If your location information contains precise street address information, don’t forget to add the country information for instance.

If your file contains address information and no coordinates, please refer to this article.

For instance, the following file is not valid:

Screenshot showing invalid excel lat long in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

This file is valid, and has more accurate address information:

Screenshot showing valid excel lat long in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

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 importing tabular data with latitude / longitude (from excel or csv)

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 lat long in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

Set layer properties

The next step allows you to edit column properties:

Screenshot showing define properties of columns lat long in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

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

Select your location information

Click Save to validate the column properties.

If the next step is “Geocode by Latitude and Longitude”, CartoVista has detected that your file contains Latitude and Longitude and has pre-selected at least one of the columns for Latitude or Longitude. Make sure that the pre-selected columns are correct, and change the selection using the down arrows if needed.

Screenshot showing geocode by lat long in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

If the next step is “What you would like to do?”, select “Geocode by Latitude and Longitude”. This will allow you to select the Latitude and Longitude columns to be used for the geocoding.

Screenshot showing what would you like to do in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

The preview shows the values of the selected columns for the first rows of your table. Make sure the coordinates are correct before clicking Geocode.

Result

When you click Geocode, your layer will be imported and added to the Data Gallery. The notification will inform you of the progress of the layer import. Once the layer has been successfully imported, the notification will allow you to create a map using this layer:

Screenshot showing lat long layer import notification in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

The layer will be added with a default layer style and a preview in the Data Gallery, in the folder you were in.

Screenshot showing lat long layer import result in CartoVista when importing tabular data with latitude / longitude (from excel or csv)

Search documentation