Skip to content

Instantly share code, notes, and snippets.

View mfogel's full-sized avatar

Mike Fogel mfogel

View GitHub Profile
@mfogel
mfogel / peru.oql
Last active February 1, 2018 16:52
Overpass QL query to get border of Peru, excluding oceans
# Peru's relation has OSM id 288247
# run at http://overpass-turbo.eu/
[out:json];
relation(288247)->.a;
(
way[maritime!=yes](r.a);
way[natural=coastline](area:3600288247);
);
out geom;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env node
const coords = [
[
[
[
1.1869525909423828,
51.87145679812676
],
[
@mfogel
mfogel / gist:23f970afca0cfca2227cc3199efe0ee5
Last active October 27, 2018 16:33
polygon clipping issue 36 reproduces original error
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.