Skip to content

Instantly share code, notes, and snippets.

@olafveerman
olafveerman / biggest-difference.csv
Created August 28, 2017 21:03
EEA Stations with multiple coordinates. The reduced list contains those stations that have a cumulative difference of > 0.001 degree.
Countrycode AirQualityStation AirQualityStationEoICode AirQualityStationNatCode Longitude Latitude cumulative_diff
CY STA-CY0004A CY0004A STROPOL 33.34779897 35.15195174 68.4991353665
CY STA-CY0004A CY0004A STROPOL 0.0002995682 0.0003157753 68.4991353665
CY STA-CY0002R CY0002R Emep 33.05782279 35.03802654 68.0952376149
CY STA-CY0002R CY0002R Emep 0.0002969632 0.0003147519 68.0952376149
CY STA-CY0005A CY0005A LIMRES 33.01775793 34.6816325 67.6987822756
CY STA-CY0005A CY0005A LIMRES 0.0002966037 0.0003115507 67.6987822756
IT STA.IT1680A IT1680A 1607388 0.0001556955 0.0003656218 58.0322486827
IT STA.IT1680A IT1680A 1607388 17.33194 40.70083 58.0322486827
IT STA.IT1930A IT1930A 402212 11.11472 46.19694 57.3111452058
@olafveerman
olafveerman / poly.geojson
Created August 31, 2017 20:55
Polygon of Bihar (India) and Northern Bangladesh
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olafveerman
olafveerman / Dockerfile
Last active December 4, 2018 05:52
WIP Hello world for osmium-tool in Docker.
FROM debian:9
ENV OSMIUM_VERSION 2.14.2
ENV OSMIUMTOOL_VERSION 1.9.1
ENV PROTOZERO_VERSION 1.6.4
RUN mkdir /work
WORKDIR /work
RUN apt-get update && \
@olafveerman
olafveerman / extract-rn.md
Created March 19, 2019 00:54
Extract road network for QXN

1. Get the extract

Note, this is 6.7GB.

wget http://download.geofabrik.de/asia-latest.osm.pbf

2. Reduce to bounding box

This file has been truncated, but you can view the full file.
[[1559220545,1559220625],[1559220545,1559220625],[1559220545,1559220625],[1559220545,1559220625],[1559220545,1559220625],[1559220545,1559220625],[1559220545,1559220712],[1559220545,1559220712],[1559220545,1559220784],[1559220545,1559220784],[1559220713,1559220784],[1559220545,1559220891],[1559220545,1559220891],[1559220545,1559220891],[1559220545,1559220948],[1559220626,1559220948],[1559220719,1559220948],[1559220545,1559221011],[1559220545,1559221011],[1559220545,1559221071],[1559220545,1559221071],[1559220545,1559221071],[1559220545,1559221071],[1559220545,1559221132],[1559220545,1559221132],[1559220545,1559221132],[1559220545,1559221227],[1559220545,1559221227],[1559220785,1559221227],[1559220545,1559221288],[1559220545,1559221371],[1559220545,1559221371],[1559220545,1559221371],[1559220785,1559221371],[1559220545,1559221404],[1559220545,1559221404],[1559220545,1559221485],[1559220545,1559221485],[1559220545,1559221485],[1559220545,1559221485],[1559220545,1559221485],[1559220545,1559221548],[1559220545,155
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.