Spatial features

Just a general thought about the management of geographic objects in Observable. What about if data tables could directly handle geojson by displaying properties + a geometry column? And what about adding turf.js to the libraries directly integrated into Observable? And more generally, are there any developments underway to take better account of spatial features natively ?

7 Likes

Thanks for this! It’s a good question. There was some investigation last year into providing a GeoJSON inspector that toggled between a map preview and the object tree inspector, but it was tricky. One thing that came out of that is offering Plot and Leaflet suggestions below cells with GeoJSON, which create new cells that renders the GeoJSON:

What about if data tables could directly handle geojson by displaying properties + a geometry column?

I took a stab at something like this — is this akin to what you had in mind…? (I know you were asking about data table cells, but maybe we can get closer today with Inputs.table.)