/
tileConfig.json
101 lines (98 loc) · 5.47 KB
/
tileConfig.json
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[
{"name": "commune", "target" : "COMMUNE_id", "minZoom": 7, "maxZoom": 14,"group":"commune",
"uniqField":"id",
"fields": [
{ "name": "id", "type": "String", "target": "IDU_id", "functions":["addDep"]},
{ "name": "label", "type": "String", "target": "TEX2_id"},
{ "name": "createYear", "type": "Number", "target": "createDate", "functions":["yearFromDate"]},
{ "name": "updateYear", "type": "Number", "target": "updateDate", "functions":["yearFromDate"]}
],
"dbData": {
"fields": [
{ "name": "label", "type": "text" , "target": "label" },
{ "name": "commune_id", "type": "text" , "target": "id" },
{ "name": "geobuf", "type": "blob", "geobuf": true}
],
"uniqIndex": ["commune_id"]
}
},
{"name": "section","target" : "SECTION_id", "minZoom": 11, "maxZoom": 16, "group":"cadastre",
"uniqField":"id",
"fields": [
{ "name": "id", "type": "String", "target": "IDU_id", "functions":["addDep"]},
{ "name": "label", "type": "String", "target": "TEX_id", "functions":["deleteLeft0"] },
{ "name": "commune_id", "type": "String", "const": "commune_id", "functions":["addDep"]},
{ "name": "createYear", "type": "Number", "target": "createDate", "functions":["yearFromDate"]},
{ "name": "updateYear", "type": "Number", "target": "updateDate", "functions":["yearFromDate"]}
],
"dbData": {
"fields": [
{ "name": "section_id", "type": "text" , "target": "id" },
{ "name": "commune_id", "type": "text" , "target": "commune_id" },
{ "name": "num_prefix", "type": "text" , "target": "id", "function": "getNumPrefixFromParcelleId" },
{ "name": "num_section", "type": "text" , "target": "id", "function": "getNumSectionFromParcelleId" },
{ "name": "geobuf", "type": "blob", "geobuf": true}
],
"uniqIndex": ["section_id"],
"indexs": [
["commune_id"]
]
}
},
{"name": "parcelle", "target" : "PARCELLE_id", "minZoom": 13, "maxZoom": 16,"group":"cadastre",
"uniqField":"id",
"fields": [
{ "name": "id", "type": "String", "target": "IDU_id", "functions":["addDep"]},
{ "name": "superficie", "type": "Number", "target": "SUPF_id", "functions":["toFloat"]},
{ "name": "label", "type": "String", "target": "TEX_id"},
{ "name": "commune_id", "type": "String", "const": "commune_id", "functions":["addDep"] },
{ "name": "createYear", "type": "Number", "target": "createDate", "functions":["yearFromDate"]},
{ "name": "updateYear", "type": "Number", "target": "updateDate", "functions":["yearFromDate"]}
],
"dbData": {
"fields": [
{ "name": "parcelle_id", "type": "text" , "target": "id" },
{ "name": "commune_id", "type": "text" , "target": "commune_id" },
{ "name": "num_prefix", "type": "text" , "target": "id", "function": "getNumPrefixFromParcelleId" },
{ "name": "num_section", "type": "text" , "target": "id", "function": "getNumSectionFromParcelleId" },
{ "name": "num_parcelle", "type": "text" , "target": "id", "function": "getNumParcelleFromParcelleId" },
{ "name": "superficie", "type": "Number" , "target": "superficie" },
{ "name": "geobuf", "type": "blob", "geobuf": true}
],
"uniqIndex": ["parcelle_id"],
"indexs": [
["commune_id", "num_section"]
]
}
},
{"name": "batiment", "target" : "BATIMENT_id", "minZoom": 13, "maxZoom": 16, "group":"cadastre",
"hashGeom": true,
"uniqField":"geomhash",
"fields": [
{ "name": "dur", "type": "Number", "target": "DUR_id", "functions":["toInt"]},
{ "name": "commune_id", "type": "String", "const": "commune_id", "functions":["addDep"] },
{ "name": "createYear", "type": "Number", "target": "createDate", "functions":["yearFromDate"]},
{ "name": "updateYear", "type": "Number", "target": "updateDate", "functions":["yearFromDate"]}
]
},
{"name": "suf", "target" : "SUBDFISC_id", "minZoom": 13, "maxZoom": 16, "group":"cadastre",
"hashGeom": true,
"uniqField":"geomhash",
"fields": [
{ "name": "label", "type": "String", "target": "TEX_id"},
{ "name": "commune_id", "type": "String", "const": "commune_id", "functions":["addDep"] },
{ "name": "createYear", "type": "Number", "target": "createDate", "functions":["yearFromDate"]},
{ "name": "updateYear", "type": "Number", "target": "updateDate", "functions":["yearFromDate"]}
]
},
{"name": "tsurf", "target" : "TSURF_id", "minZoom": 12, "maxZoom": 16, "group":"cadastre",
"uniqField":"geomhash",
"hashGeom": true,
"fields": [
{ "name": "sym", "type": "Number", "target": "SYM_id", "functions":["toInt"]},
{ "name": "commune_id", "type": "String", "const": "commune_id", "functions":["addDep"] },
{ "name": "createYear", "type": "Number", "target": "createDate", "functions":["yearFromDate"]},
{ "name": "updateYear", "type": "Number", "target": "updateDate", "functions":["yearFromDate"]}
]
}
]