Skip to content

Instantly share code, notes, and snippets.

@klokan
klokan / README.md
Last active July 15, 2025 06:59
NASA Blue Marble

NASA Blue Marble

Prepared for MapTiler: http://www.maptiler.com/ or other GDAL tools

GDAL vrt

Download the high-resolution images from http://visibleearth.nasa.gov/view.php?id=73751

wget http://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x21600x21600.A1.jpg
wget http://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x21600x21600.A2.jpg
@klokan
klokan / README.md
Last active June 23, 2024 21:37
NASA Blue Marble - ESRI World Files (.wld)

NASA Blue Marble

ESRI World Files (.wld) for files from http://visibleearth.nasa.gov/view.php?id=73751

Download the high-resolution images:

wget http://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x21600x21600.A1.jpg
wget http://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x21600x21600.A2.jpg
@klokan
klokan / Dockerfile
Created January 29, 2015 01:13
GDAL in Docker - stable GDAL with JP2KAK, MRSID and ECW: https://registry.hub.docker.com/u/klokantech/gdal/
FROM debian:7
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update \
&& apt-get -qq -y --no-install-recommends install \
autoconf \
automake \
build-essential \
curl \
@klokan
klokan / index.html
Created April 29, 2015 18:20
TileServer test
<!DOCTYPE html>
<html>
<head>
<title>RP-P-1883-A-7004</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://tileserver.com/v1/index.css" type="text/css"/>
<script src="https://tileserver.com/v1/index.js"></script>
</head>
<body>
<script type="text/javascript">
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="./resources/prism/prism.css" type="text/css">
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></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.11.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
name: open-streets
tile: 10/4141/5356
features: 6131
layers: 8
classes: 10
types: 300
landuse
agriculture
farm
@klokan
klokan / logging.diff
Created October 30, 2015 18:14
CloudWatch Logs - boto python logging
diff --git a/XXX-tiler.py b/XXX-tiler.py
index b18d99d..9a01a53 100644
--- a/XXX-tiler.py
+++ b/XXX-tiler.py
@@ -1,5 +1,6 @@
import json
import logging
+import logging.handlers
import requests
import sqlite3
@klokan
klokan / android.log
Created January 7, 2016 13:54
MapBox GL Cordova on PhoneGap Build (iOS / Android / Windows) cli-5.2.0 (3.9.1 / 4.1.1 / 3.8.1)
Build Date: 2016-01-06 23:55:09 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Fetching plugin "cordova-plugin-mapbox@1" via npm
Installing "cordova-plugin-mapbox" for android
@klokan
klokan / template.php
Created May 4, 2016 12:00
TileServer-PHP Custom Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<style type="text/css">
html, body { height: 100%; margin: 0; padding: 0; position: fixed; font-family: Verdana, Geneva, sans-serif; font-size: 12pt; color: #666666;}
h1{margin: 0; padding: 0; font-size: 24pt;}
label{font-size: 11pt; cursor: pointer;}