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
#marinas[harbour=true][zoom>=7][zoom<=14], | |
#marinas[harbour=null][zoom>=10][zoom<=14], | |
#locks::label[zoom>=16] { | |
text-name:"''"; //just to avoid errors with the carto parser | |
text-face-name:@sans; | |
text-placement:point; | |
text-fill:@harbour_text; | |
text-halo-fill:@harbour_halo; | |
text-halo-radius:2; | |
text-size:12; |
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
#layer[zoom>=10][zoom<=14][tag='yes'], | |
#layer[zoom>=7][zoom<=14][tag='no'] { | |
// your styles here | |
} |
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
diff --git a/storm/postgresql.conf b/storm/postgresql.conf | |
index 37d26ef..7b68c5e 100644 | |
--- a/storm/postgresql.conf | |
+++ b/storm/postgresql.conf | |
@@ -106,7 +106,7 @@ ssl = false # (change requires restart) | |
# - Memory - | |
-shared_buffers = 4GB # min 128kB | |
+shared_buffers = 8MB # min 128kB |
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
Parsing time: 11ms | |
Parsing time: 5ms | |
Parsing time: 17ms | |
Parsing time: 39ms | |
Parsing time: 42ms | |
Parsing time: 45ms | |
Parsing time: 67ms | |
Parsing time: 17ms | |
Inheritance time: 1ms |
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 | |
# like [1] but DRYer | |
# [1]: https://github.com/migurski/HighRoad/blob/master/Makefile | |
declare -A latlon | |
latlon=( | |
[sfo]='37.807613 -122.279891' | |
[nyc]='40.756749 -73.998284' | |
[lon]='51.507553 -0.008271' |
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
CREATE OR REPLACE FUNCTION city_label_direction(geometry) | |
RETURNS INTEGER AS | |
$$ | |
SELECT Cast(Round(Degrees(ST_Azimuth(ST_ClosestPoint(geometry, $1),$1))) AS INTEGER) | |
FROM osm_places | |
WHERE geometry && ST_Expand($1, 200000) | |
AND scalerank > 0 | |
AND NOT ST_DWithin(geometry, $1, 1) | |
ORDER BY ST_Distance(geometry, $1) ASC | |
LIMIT 1 |
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 imposm.mapping import ( | |
Options, | |
Points, LineStrings, Polygons, | |
String, Bool, Integer, OneOfInt, | |
set_default_name_type, LocalizedName, | |
WayZOrder, ZOrder, Direction, | |
GeneralizedTable, UnionView, | |
PseudoArea, meter_to_mapunit, sqr_meter_to_mapunit, | |
) |
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
<Rule> | |
&maxscale_zoom13; | |
&minscale_zoom18; | |
<Filter>[aeroway]='aerodrome'</Filter> | |
<TextSymbolizer size="9" fill="#6692da" fontset-name="oblique-fonts" halo-radius="1" wrap-width="0" placement="interior">[name]<$ | |
</Rule> | |
<Rule> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE Map[]> | |
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> | |
<Parameters> | |
<Parameter name="bounds">-180,-85.05112877980659,180,85.05112877980659</Parameter> | |
<Parameter name="center">0,0,2</Parameter> | |
<Parameter name="format">png</Parameter> | |
<Parameter name="minzoom">0</Parameter> | |
<Parameter name="maxzoom">22</Parameter> |
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
#countries { | |
::shadow1, ::shadow2, ::shadow3 { | |
line-color: #024; | |
line-join: round; | |
} | |
::shadow1 { | |
line-opacity: 0.03; | |
line-width: 7; | |
} | |
::shadow2 { |