TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.

Home Page:https://terria.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Join tabular and vector data sources (client-side region mapping)

nf-s opened this issue · comments

It would be great to be able to join tabular datasets with vector datasets by column.

This would present data in a similar way to region mapping - where we "join" tabular dataset with vector tile datasets.

For example

We would join by "Block ID"

This would be cool

  • Create a new vector-join catalog item - which extends GeoJsonMixin
  • Add members property that allows you to define catalog items to merge
    • These can be GeoJsonMixin or TableMixin catalog items
    • Or, IDs to existing models (in the catalog)
  • Have some sort of joinBy trait
  • Merge all the rows/features into a new GeoJson Feature collection
  • That's it

This means you can use any tabular or geojson source to merge - for example

  • Opendatasoft table
  • GeoJSON polygons

Or

  • CSV time-series
  • ArcGis FeatureService

It also means you don't need to modify TableMixin or GeoJsonMixin

@steve9164 to link old PR

See #3963

You're right about old. This PR is built on terriajs 7.