This file contains 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
/** | |
Simple script to transform coordinates from WGS84 Geographic to UTM Zone 33N. | |
Based on Holsen.js, which in turn is based on "Holsens småprogrammer" | |
License: MIT | |
Written by: Atle F. Sveen | |
**/ | |
var toUtm33 = (function () { | |
'use strict'; |
This file contains 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 | |
# Settings: edit these as needed | |
PROJECT_NAME="test" | |
OUTPUT_DIRECTORY="~/Documents/MapBox/export/" | |
# first change into TileMill code directory | |
cd /Applications/TileMill.app/Contents/Resources/ | |
# hint: use http://bboxfinder.com/ to get bounds in lon/lat |
This file contains 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
from werkzeug.routing import NumberConverter, ValidationError | |
class NegativeFloatConverter(NumberConverter): | |
regex = r'\-?\d+\.\d+' | |
num_convert = float | |
def __init__(self, map, min=None, max=None): | |
NumberConverter.__init__(self, map, 0, min, max) | |
app.url_map.converters['float'] = NegativeFloatConverter |