Superset has a deck.gl Polygon visualisation type.
I am trying to use this type of chart to display polygons taken from a PostGIS enabled postgres database; however, no visual information is displayed other than the legend.
My database query is as follows:
SELECT *, ST_AsGeoJSON(ST_Transform((ST_DUMP(geom)).geom::geometry(Polygon, 27700), 4326)) as geom
FROM <my-schema>.<my-table>;
This returns geojson Polygon records as such:
{
"type": "Polygon",
"coordinates": [[
[-0.029742716, 51.492925448],
[-0.028980512, 51.491626654],
[-0.027819506, 51.490055839],
...
I've verified in QGIS that the query works and that the geoJSON information displays correctly.
However, this doesn't seem to work in superset: I've created a deck.gl Polygon chart for which I've selected the JSON lines encoding (as opposed to Polyline or Geohash). After selecting a Metric and centring the viewport coordinates to the correct geographical extents I've run the query, but see no spatial information displayed in the chart, just a legend showing the breaks for the selected metric.
Though the map is empty, the adjacent buttons for downloading the data as a CSV or JSON return complete data, so I'm inclined to think that I've misunderstood one of the settings or that I've provided the data in the incorrect format.
Any pointers on how to get this plugin working and what format it might be expecting the data to be in?
In general, I am struggling to find any documentation on how to use the superset deck.gl plugin: any examples or documentation that might be helpful?