Connect a CKAN GeoJSON resource and keep its shapes

Choose a geographic resource from a CKAN dataset, verify a sample on the map, and preserve its geometry in the virtual table.

Use this workflow when a CKAN dataset publishes shapes you need in Mainbase, such as trail lines or district boundaries. You need a saved CKAN portal connection and permission to create a virtual table.

Choose and preview the geographic resource

  1. In workspace settings, open CKAN Connector. On the saved connection, open More and select Create Virtual Table. Find the publisher’s dataset in Search Datasets.
  2. In Select Resource, choose the GeoJSON resource with the coverage and edition you need. Compare the resource name and format with the publisher’s listing. For example, if a trail dataset includes a CSV of trailheads and a GeoJSON file of routes, choose the route file to work with the lines.
  3. In Preview Data, check Map preview and the sample rows for a place and an attribute you recognize. For example, check that a known trail is drawn in the expected area and that the sample includes the trail name. The map shows the geometry Mainbase can draw from the sample.

If rows appear without a map, the sample may lack usable geometry. Check the resource selection and compare it with the publisher’s listing before creating the table. If the preview is unavailable, check whether the publisher provides a different GeoJSON resource for the same coverage.

Keep the geometry in the table

  1. In Map Fields, find the source field named geometry and keep its Type set to geojson. You can give it a clearer Display Label, such as Trail geometry.
  2. Enter a Table Display Name that identifies the geographic resource and select Create Virtual Table.
  3. Open the table and check that it exposes the geometry field and the expected attributes. To use the shapes on a map, add a table layer using the GeoJSON field.

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?