Skip to content

MySQL Spatial

Use MySQL Spatial for MySQL (or MariaDB via MySQL) spatial columns.

Goal

Configure a map that uses the MySQL Spatial source.

Prerequisites

  • A map element is on the canvas
  • Required connections exist in Connection Manager (when applicable)

Steps

  1. Create a MySQL connection.
  2. Set the map source to MySQL Spatial.
  3. Select the connection and configure Map SQL.
  4. Preview.

[ Screenshot: MySQL Spatial map configuration ]

Result

Preview renders features from the MySQL Spatial source inside the map frame.

Tips

Tip

Verify SRID definitions on spatial columns if features plot in the wrong location.

See Also