Public
Edited
Dec 13, 2023
Insert cell
Insert cell
// importando la librería
proj4 = require("proj4")
Insert cell
// EPSG:4326
longlat_wgs84 = "+proj=longlat +datum=WGS84 +no_defs"
Insert cell
// 1. Lo saque de mi QGIS
// 2. Se habia generado a partir de un .prj del sitio https://data.buenosaires.gob.ar/dataset/
GK_BuenosAires = "+proj=tmerc +lat_0=-34.6297166 +lon_0=-58.4627 +k=0.999998 +x_0=100000 +y_0=100000 +ellps=intl +units=m +no_defs"
Insert cell
proj4(GK_BuenosAires, longlat_wgs84, [100000, 100000])
Insert cell
proj4(GK_BuenosAires, "EPSG:4326", [100000, 100000])
Insert cell
proj4("EPSG:4326")
Insert cell
proj4("EPSG:3857").oProj.title
Insert cell
extent = ({
minXminY: proj4("EPSG:4326", "EPSG:3857", [-180, -89.99999999]),
maxXmaxY: proj4("EPSG:4326", "EPSG:3857", [+180, +89.99999999])
})
Insert cell
(+extent.minXminY[0].toFixed(1)).toLocaleString("es-ar")
Insert cell
Insert cell
A = 4 * π * r * r
Insert cell
π = Math.PI
Insert cell
// radio
r = 6371
Insert cell
Insert cell
aeroparque_internacional_Jorge_Newbery = [-34.5592966, -58.4171424]
Insert cell
aeropuerto_bariloche = [-41.145782, -71.1629523]
Insert cell
el_calafate_aeropuerto = [-50.283977, -72.0539223]
Insert cell
distance(aeroparque_internacional_Jorge_Newbery, aeropuerto_bariloche, "K")
Insert cell
distance(aeroparque_internacional_Jorge_Newbery, el_calafate_aeropuerto, "K")
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