For the complete documentation index, see llms.txt. This page is also available as Markdown.

Simple features

Builder supports simple features stored as geometry or geography in cloud data warehouses. These simple features are defined as a standard which specifies digital storage of geographical data, usually point, line or polygon, storing both spatial and non-spatial features.

Supported spatial column types

CARTO identifies the geo column of a source from the column type reported by the data warehouse. This table shows the type of simple features (geography or geometry) supported on each data warehouse:

Geography

Geometry

BigQuery

Not Supported

CARTO Data Warehouse

Not Supported

Snowflake

Not Supported

Databricks

Not Supported

Amazon Redshift

Not Supported

PostgreSQL

Not Supported

Oracle

Not Supported

Geometries stored in text columns (WKT, GeoJSON) or in generic binary columns (WKB in a BYTES, BINARY, VARBYTE or BYTEA column) are not detected as geo columns. Cast them to the spatial type of your data warehouse in the SQL Query of your source, or materialize a table with a proper spatial column.

Converting between geography and geometry

If your column uses the type that is not supported by your provider, you can convert it:

  • Snowflake: convert GEOMETRY to GEOGRAPHY, for example with the Geometry to Geography component in Workflows.

  • Amazon Redshift and PostgreSQL: convert GEOGRAPHY to GEOMETRY, for example with the Geography to Geometry component in Workflows.

Coordinate reference systems

Projection support

BigQuery, CARTO Data Warehouse, Snowflake

GEOGRAPHY values are always WGS84 (EPSG:4326). Nothing to configure.

Databricks

Coordinates are expected to be WGS84 (EPSG:4326) longitude/latitude. CARTO does not reproject Databricks geometries, so data in another projection will not display correctly.

PostgreSQL, Amazon Redshift, Oracle

Any SRID is supported as long as it is set on the geometries. CARTO reads the SRID from the data and reprojects on the fly when needed. If the SRID is unset (0), WGS84 is assumed.

Reprojecting on every tile request has a cost. For the best performance, store your geometries in the projection recommended for each data warehouse and make sure the SRID is set — check the performance considerations section for details.

Limitations

When working with simple features in Builder, ensure that your spatial column contains only a single type of geometry—either points, lines, or polygons. Mixing different geometry types within the same spatial column is not supported. To handle multiple geometry types, use separate sources for each type.

The single-part and multi-part variants of the same family can be mixed: POINT/MULTIPOINT are both rendered as points, LINESTRING/MULTILINESTRING as lines, and POLYGON/MULTIPOLYGON as polygons.

Visualizing simple features

Builder ensures performance experience when rendering simple features on a map as data is loaded progressively via vector tiles. The data for these tiles is extracted by pushing down SQL queries to the data warehouse, and they are requested as you zoom in and out or pan the map.

Note these queries in Builder are cached. To understand more how caching works and different methods to keep your data fleshed, check this link in our documentation.

Find more information about performance consideration for this data source type in this section.

Last updated

Was this helpful?