Skip to content

Instantly share code, notes, and snippets.

@vulkd
vulkd / reproject_shapefiles.py
Created Jan 3, 2020
article polar-projections-with-mapbox
View reproject_shapefiles.py
import os
import glob
DRY_RUN = True
prefix = "polar"
target_projection_real = "EPSG:3031"
target_projection_faux = "EPSG:3857"
@vulkd
vulkd / example.html
Created Jan 3, 2020
article polar-projections-with-mapbox
View example.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
<script src='https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.6.0/proj4.js' integrity='sha256-GfiEM8Xh30rkF6VgCIKZXLhoPT8hWwijiHkiKeJY82Y=' crossorigin='anonymous'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.4.0/mapbox-gl.js' integrity='sha256-4vgPjIfsjmay+xrYNgX79wO5pIHcSKoCWJKwNmoqcms=' crossorigin='anonymous'></script>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.4.0/mapbox-gl.css' integrity='sha256-t2fYcalxXkJ++B2YwGcM5KYrF8Fu9vCcO69LI16Q5Y0=' crossorigin='anonymous'/>
<style>
body { margin: 0; padding: 0; }