Public
Edited
Jul 12, 2024
4 forks
Importers
46 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
afghanistan = db
.exec(
"select json_object('id', GID_1, 'name', NAME_1) as properties, geom as geometry from afghanistan"
)
.get.objs.then((d) => ({ type: "FeatureCollection", features: d }))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
bol.filenames[0]
Insert cell
Insert cell
bol.file("gadm41_BOL_2.kml").text()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
query = `
[out:json]
[timeout:10000];
(
node[shop=bakery](48.814,2.222,48.904,2.472);
);
out;
`
Insert cell
Insert cell
osmdata = overpass(query)
Insert cell
Insert cell
bakery = ({
type: "FeatureCollection",
features: osmtogeojson(osmdata).features.filter(
(d) => d.geometry.type == "Point" // to keep only the dots
)
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more