posit-dev / posit-dev/ggsql

Geometry scale

Open
#453 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plot building
Dominant language
Rust
Stars
554
Forks
30
Avg merge
17h 27m
Merged PRs (30d)
8

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points, so implementation location and existing scale behavior need to be established first. Clarify the supported country, country-code, and US-state mappings and define completion around resolving names to geometries while preserving identity behavior for existing geometry values.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.