Public
Edited
Jun 7, 2023
Importers
4 stars
Insert cell
Insert cell
Insert cell
Object.keys(gdal.drivers.vector).sort()
Insert cell
Insert cell
oregon = await fetch(
"https://raw.githubusercontent.com/unitedstates/districts/gh-pages/states/OR/shape.geojson"
)
.then((r) => r.blob())
.then((b) => new File([b], "oregon.geojson", { type: "application/json" }))
Insert cell
input = await gdal.open(oregon)
Insert cell
options = ["-f", "GPKG", "-t_srs", "EPSG:4326"]
Insert cell
Insert cell
Insert cell
output = await gdal.getFileBytes(filePath.local)
Insert cell
download(new Blob([await gdal.getFileBytes(filePath.local)]), "oregon.gpkg")
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