Export boundary geometry from an OpenDataSoft dataset
Identify the shape field and ask the publisher’s GeoJSON export to use it for the exported features.
An OpenDataSoft dataset can contain both a point and a boundary for the same place. For example, a park inventory may contain a center point and an outline. Use the publisher’s GeoJSON export with the shape field when you need the outlines for another mapping tool.
Find the shape field
- Find the dataset in Open Data. If Table is available, note a known record you can check in the export. Use Portal on the source page when available to reach the publisher’s dataset page.
- Find the dataset identifier. On the publisher’s portal host, open
/api/explore/v2.1/catalog/datasets/{dataset_id}with that identifier. Infields, look for the shape field with typegeo_shape. Copy itsname, which can differ from the displayed label. Ageo_point_2dfield supplies point coordinates.
Request and verify the GeoJSON
- Open the corresponding
/api/explore/v2.1/catalog/datasets/{dataset_id}/exportsand look for the GeoJSON link if offered. In its URL, setmain_geo_fieldto the exact shape field name. Use the field name without quotation marks. For a field namedboundary, the end of the export URL would be/exports/geojson?main_geo_field=boundary. Explore API export reference - Open the returned GeoJSON in a viewer or text editor. Find the known record by its properties and check that
geometry.typeisPolygonorMultiPolygonwhen you expect an outline. If it isPoint, recheck the field name and the dataset before using the file.
To draw the publisher’s geometry directly from a Mainbase table, map the dataset’s shape field in Geo Layer.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy 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?