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/sh | |
export GDAL_TIFF_INTERNAL_MASK=YES | |
nearblack -co TILED=YES -setmask -nb 0 -of GTiff -o ./prewarp.tif $1 | |
gdalwarp -co TILED=YES -dstalpha -t_srs EPSG:4326 prewarp.tif warped.tif | |
rm prewarp.tif | |
gdal_translate -co TILED=YES -co JPEG_QUALITY=80 -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR -b 1 -b 2 -b 3 -mask 4 warped.tif final.tif | |
rm warped.tif | |
gdaladdo final.tif 2 4 8 16 32 64 128 256 | |
mv final.tif ${1}_converted.tif |
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
MAP | |
NAME "test" | |
EXTENT -120.73 35.254 -120.589 35.327 | |
SIZE 800 800 | |
IMAGETYPE png | |
PROJECTION | |
"init=epsg:4326" | |
END |
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
def translateAttributes(attrs): | |
if not attrs: | |
return | |
tags = {} | |
if int(attrs['SPD_PST']) > 0: | |
tags.update({'maxspeed':attrs['SPD_PST'] + ' mph'}) | |
if attrs['FULLNAME']: | |
tags.update({'name:fullname':attrs['FULLNAME'],'source:maxspeed':'sign' }) |
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
def translateAttributes(attrs): | |
if not attrs: | |
return | |
tags = {} | |
if int(attrs['SPD_PST']) > 0: | |
tags.update({'maxspeed':attrs['SPD_PST'] + ' mph'}) | |
if attrs['FULLNAME']: | |
tags.update({'name:fullname':attrs['FULLNAME'] }) |
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
<html> | |
<head> | |
<title>CAL FIRE San Luis Obispo - Project Landing Page</title> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'></script> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css"> | |
<link rel='stylesheet' href='style.css' /> | |
<link href="http://fonts.googleapis.com/css?family=Crimson+Text:bold,400italic,600,600italic,700,700italic" rel="stylesheet" type="text/css" > | |
</head> | |
<body> | |
<h1>CAL FIRE San Luis Obispo Current Projects</h1> |
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
server { | |
server_name cfslo.no-ip.org | |
location / { | |
include /etc/nginx/proxy.conf; | |
proxy_pass http://127.0.0.1:8888; | |
} | |
location /incident { | |
rewrite ^/incident(.+)$ $1 break; |
NewerOlder