-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtilestache.cfg
87 lines (87 loc) · 2.29 KB
/
tilestache.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"cache": {
"name": "Memcache",
"servers": ["127.0.0.1:11211"],
"key prefix": ""
},
"layers": {
"lots": {
"allowed origin": "*",
"provider": {
"class": "TileStache.Goodies.VecTiles:MultiProvider",
"kwargs": {
"names": ["lots-centroids", "lots-polygons"]
}
}
},
"lots-centroids": {
"allowed origin": "*",
"provider": {
"class": "TileStache.Goodies.VecTiles:Provider",
"kwargs": {
"dbinfo": {
"host": "localhost",
"user": "nycommons",
"password": "<DB_PASSWORD>",
"database": "nycommons"
},
"queries": [
"SELECT id AS __id__, ST_Transform(centroid, 900913) AS __geometry__, commons_type, owner_id, priority, organizing FROM visible_centroids WHERE centroid is not null"
]
}
}
},
"lots-polygons": {
"allowed origin": "*",
"provider": {
"class": "TileStache.Goodies.VecTiles:Provider",
"kwargs": {
"clip": false,
"dbinfo": {
"host": "localhost",
"user": "nycommons",
"password": "<DB_PASSWORD>",
"database": "nycommons"
},
"queries": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
"SELECT id AS __id__, ST_Transform(polygon, 900913) AS __geometry__, commons_type, owner_id, priority, organizing FROM visible_polygons WHERE polygon is not null"
]
}
}
},
"parcels": {
"allowed origin": "*",
"provider": {
"class": "TileStache.Goodies.VecTiles:Provider",
"kwargs": {
"dbinfo": {
"host": "localhost",
"user": "nycommons",
"password": "<DB_PASSWORD>",
"database": "nycommons"
},
"queries": [
"select id AS __id__, address, ST_Transform(geom, 900913) AS __geometry__ from parcels_parcel where geom && ST_Transform(!bbox!, 4326)"
],
"clip": false
}
}
}
}
}