This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import pyproj | |
from sklearn.metrics import pairwise | |
# Generate random coordinates (Madrid area) | |
SAMPLE_SIZE_1 = 100000 | |
SAMPLE_SIZE_2 = 2000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import pandas as pd | |
import numpy as np | |
from k_means_constrained import KMeansConstrained | |
SAMPLE_SIZE = 5300 | |
N_CLUSTERS = 4 | |
SIZE_MIN = math.floor(SAMPLE_SIZE / N_CLUSTERS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GCP_01="388.46002441, 196.62191858 -19555.91116009, 6710435.00801315" | |
GCP_02="573.11678317, 200.93739002 -19476.82479038, 6710449.74596497" | |
GCP_03="634.76211884, 304.41287333 -19457.77228947, 6710500.17824991" | |
GCP_04="481.83055224, 322.38714778 -19527.40774212, 6710498.41133932" | |
DATA_SOURCE=rgs.dxf | |
SRC_EPSG=3857 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP FUNCTION IF EXISTS testing_environments_path(text); | |
CREATE OR REPLACE FUNCTION testing_environments_path( | |
dbschema text | |
) | |
RETURNS void AS | |
$$ | |
BEGIN | |
EXECUTE format('CREATE SCHEMA %I;', dbschema); | |
EXECUTE format('SET LOCAL search_path TO %I,public', dbschema); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title>IUCN-Med StoryMaps</title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.34.0/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.34.0/mapbox-gl.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Torque Named Map | CartoDB</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { |