Skip to main content

Vector Datasets and Vector Files

What Is a Vector Dataset?

A Vector Dataset is a named container for spatial geometry — the collection of points, lines, or polygons rendered on the map. Scenarios reference a Vector Dataset to obtain their spatial geometry.

Adding a New Vector Dataset

  1. Go to Datasets → Vector Datasets → + Add Vector Dataset.
  2. Fill in the metadata fields (see the fields table below).
  3. Click Save. You can then upload Vector Files.

Vector Dataset Fields Reference

FieldDescription
Name / Name (PT)Unique name (max 155 chars). Supports EN/PT translations.
Description / Description (PT)Optional abstract. Supports translations.
Data Owner (source)Optional attribution (max 155 chars).
Point of Contact (contact)Optional contact person or team.
Publication Date (published)Optional date the dataset was published at the source.
Temporal ExtentOptional time period the data covers (e.g. "2020–2024").
CRSOptional. Document the source CRS (e.g. "EPSG:4326"). All files are reprojected to EPSG:4326 during processing.
Maintenance FrequencyOptional. How often the dataset is updated at the source.
LineageOptional. Data provenance or processing notes.
Legal LicenseOptional. Licence under which the data is provided.
Attribute DefinitionsOptional. Link or note describing the attribute schema.
Is PublicSuperuser only. If ticked, dataset visible to unauthenticated users.
Is ApprovedSuperuser only. Must be approved before the dataset can be used in Scenarios or shown on the frontend.

Adding Vector Files

Uploading triggers a Celery task: file → FlatGeobuf (GDAL) → PMTiles (Tippecanoe).

  1. Go to Datasets → Vector Files → + Add Vector File.
  2. Select the parent Vector Dataset.
  3. Upload a file. Accepted formats:
FormatNotes
.geojsonGeoJSON. Must use WGS84 (EPSG:4326). Preferred format.
.gpkgGeoPackage. Fully supported.
.zipZIP archive containing a Shapefile (.shp, .shx, .dbf, .prj).
.kmlKeyhole Markup Language. Fully supported.
  1. Click Save. Processing begins automatically.

Monitoring File Processing

Status: Created → Processing → Ready (or Error). If a file enters Error state, open the record and read the Error Message. Use Reprocess files to re-queue.

Publishing a Dataset

Only superusers can publish datasets. Select datasets in the list view and use the Actions dropdown:

ActionEffect
Make dataset publicSets is_public = True
Make dataset privateSets is_public = False
Publish datasetSets is_approved = True
Unpublish datasetSets is_approved = False
Visibility rule

A dataset is visible to unauthenticated users only when both is_public = True AND is_approved = True. Authenticated users can see any dataset where is_approved = True, regardless of is_public.