Published
Edited
Feb 11, 2022
Insert cell
Insert cell
Insert cell
Insert cell
pixelGeojson = Object.assign({},inputGeoJson)
Insert cell
Insert cell
pixelGeojson.features.forEach((f,i) => {
let coords = f.geometry.coordinates[0][0];
let transCoords = coords.map(c=>{
const imageCoordinate = transform.toImage(transformArgs, c);
return [imageCoordinate[0], -imageCoordinate[1]] })
pixelGeojson.features[i].geometry.coordinates[0][0]=transCoords; });
Insert cell
pixelGeojson
Insert cell
Insert cell
Insert cell
Insert cell
csvPoints = FileAttachment("gcps.csv").csv()
Insert cell
inputGeoJson = FileAttachment("d-neighborhoods.geojson").json()
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