Create a GeoJSON virtual table for one region

Use a publisher’s regional query in your GeoJSON virtual table and verify the returned boundaries before you save it.

If a GeoJSON publisher lets you request features for a district or service area, you can use that request as the source of a virtual table. Start with a GeoJSON connection and the publisher’s instructions for filtering its data.

Get the regional GeoJSON URL

  1. Use the publisher’s documented parameter and value. For example, if it supports a district parameter, the full URL might look like https://data.example.org/boundaries.geojson?district=north. The publisher defines which parameters work and what they mean.
  2. Open the complete URL and check that it returns GeoJSON features for the region you want. Look for a district name or code in the properties. If the publisher supports a bounding box, check its expected coordinate order and whether the result includes features that intersect the box.

Create and check the virtual table

  1. In workspace settings, open GeoJSON. In the connection’s actions menu, select Create Virtual Table.
  2. In GeoJSON Source, paste the complete address, including everything after the question mark, into GeoJSON URL. If the response wraps the features in another object, set Advanced Configuration (Optional) → Feature Path to the path to the array, such as data.features.
  3. Select Test GeoJSON URL. Continue to Spatial Analysis and use Analyze GeoJSON Data to check that the response contains geographic features.
  4. In Preview Data, confirm the Source still includes the query and the Geometry matches what you expect. If sample records are available, check their district name or code. If the sample covers the wrong area, return to GeoJSON Source and check the parameter name and value against the publisher’s instructions.
  5. In Map Fields, keep the geometry and the attributes you’ll use to identify each feature. Finish the wizard and give the table a name that includes the region, such as North district boundaries.

The table uses the URL you entered for its reads. You can add it to a Geo Layer map to see the features in context.

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?