This is just to note down an idea that came up during discussion with Thomas.
Essentially if user has data in the shape of country_name, value and wants to make a chloropleth, he lacks the geometry for the country_name column.
The idea is that we have a scale for the geometry aesthetic that maps the country_name to geometries representing the country. We can do the same for country codes, US states etc.
For the user it may look some like this:
DRAW spatial MAPPING country_name AS geometry
The scale resolving bits figure out that the geometry aesthetic is a string instead of WKT/WKB/Binary blob/Geometry and setup a suitable palette. For proper geometry columns, it will be an identity scale.
This is just to note down an idea that came up during discussion with Thomas.
Essentially if user has data in the shape of
country_name,valueand wants to make a chloropleth, he lacks the geometry for thecountry_namecolumn.The idea is that we have a scale for the geometry aesthetic that maps the
country_nameto geometries representing the country. We can do the same for country codes, US states etc.For the user it may look some like this:
The scale resolving bits figure out that the
geometryaesthetic is a string instead of WKT/WKB/Binary blob/Geometry and setup a suitable palette. For proper geometry columns, it will be an identity scale.