Open asinghvi17 opened 1 month ago
Dimensional data.jl already handles point lookups a bit, see mergedims
. But polygons etc need more work. Probably we make a GeometryLookups.jl package so everyone can use them?
scatter
default is good for points with color as the values. if there is another dimension like time we plot points in 3d? and the same for lines/polygons etcMergedLookup
, we can use that syntax for everything else toomerged.jl
for the point implementation, for polygons we would need special lookups.MergedLookup
does currently. Its slow.I just realized that geometric lookups are a great way to represent discretized global grids, since each grid cell is just an integer - a DGGSLookup
could be a subtype of some AbstractGeometricLookup
, and with a nice API we could have super easy plotting / subsetting / rasterization to a Cartesian grid!
(image from the DGGS talk at SDSL 2024)
For sure. Except for the nesting, and there should be optimisations for finding polygons on these grids?
It's super easy to create dimension axes that have vector lookups:
but some questions arise here.
color
as the values of the dimvector. What about 2d arrays?Contains
,Touches
,..
,At
, etc work, potentially using GeometryOps? Do we want an extension for this? I think this will involve geometric predicates at least.GI.geometrycolumns
of a raster to point to geometric lookups? Do we want to stash this in the metadata?