Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d3netxer
d3netxer / App.js
Created July 29, 2022 17:39
Deck.gl ArcLayer Example
/// app.js
import React, {useState} from 'react';
import DeckGL from '@deck.gl/react';
//import {LineLayer} from '@deck.gl/layers';
import {ArcLayer} from '@deck.gl/layers';
import {Map} from 'react-map-gl';
import mapboxgl from "mapbox-gl"; // This is a dependency of react-map-gl even if you didn't explicitly install it
// add to apply the following fix so that the basemap works in production: https://github.com/visgl/react-map-gl/issues/1266
// eslint-disable-next-line import/no-webpack-loader-syntax
@d3netxer
d3netxer / piura_omk
Last active January 30, 2022 06:28
overpass-turbo query to get all buildings, highways, and major points of interest from bounding box
(
// get all buildings
way[building]({{bbox}});
// get all roads
way[highway]({{bbox}});
// get important POIs
node[leisure]({{bbox}});
node[sport]({{bbox}});
node[man_made]({{bbox}});
node[historic]({{bbox}});
@d3netxer
d3netxer / install_osmnx.md
Created November 26, 2017 16:22
Installing OSMNX
@d3netxer
d3netxer / D3 date-time series chart
Last active April 13, 2021 11:47
D3 date-time series chart
title
file with a leading space = GIST title
http://stackoverflow.com/questions/19896900/how-to-change-the-name-of-a-gist-in-github
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d3netxer
d3netxer / Extract_features_from_vector_tiles_publish.ipynb
Created January 31, 2021 23:10
Extracting features from Vector Tiles
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Detailed Description of Layers

Functional Urban Areas (GHS-FUA 2015)

The GHS Functional Urban Areas (GHS-FUA) delineate the spatial entities representing the commuting area of the Urban Centres of 2015. (source: https://ghsl.jrc.ec.europa.eu/ghs_fua.php)

Urban Centers (WB calculation using GHS-POP 2015)

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudformation:Describe*",
"cloudformation:List*",
"cloudformation:Get*",
"cloudformation:CreateStack",
// bbox covers saurimo
[out:csv(::timestamp,::user,::type)][timeout:25][bbox:-9.938605,19.873032,-9.428253,20.916046];
// gather results
(
  // query part for: “building”
  way["building"];
  relation["building"];
);
// print results