I have been trying to load the OpenStreetMap carto project in order to export tiles for use on our in house GIS Server. I have followed all the instructions up to loading the osm xml into postGIS and postgresql. I have viewed the data in QGIS and it is working. I downloaded the open-street-map-carto project from github and changed all the configuration files to point to our server. I am at a point where I am unable to view anything in TileMill and I am receiving this error "water-features.mss:159:8 Property text-name required for defining text styles." I am not sure what the issue is and how to fix it.
Here is the code for water-features.mss
@breakwater-color: #aaa; /* Also for groyne */
@dam: #adadad;
@dam-line: #444444;
@weir-line: #aaa;
@lock-gate: #aaa;
@lock-gate-line: #aaa;
#water-barriers-point, #water-barriers-line, #water-barriers-poly {
[waterway = 'dam'] {
#water-barriers-poly[zoom >= 13] {
line-width: 2;
line-color: @dam-line;
line-join: round;
line-cap: round;
polygon-fill: @dam;
}
#water-barriers-line[zoom >= 13] {
line-width: 2;
line-color: @dam-line;
line-join: round;
line-cap: round;
}
#water-barriers-point[zoom >= 17] {
marker-fill: @dam;
marker-line-color: @dam-line;
marker-line-width: 1;
marker-width: 8;
marker-height: 8;
marker-allow-overlap: true;
marker-ignore-placement: true;
}
}
[waterway = 'weir'] {
#water-barriers-line[zoom >= 13] {
line-color: @weir-line;
line-width: 2;
line-dasharray: 2,2;
}
#water-barriers-point[zoom >= 17] {
marker-fill: @water-color;
marker-line-color: @weir-line;
marker-line-width: 1;
marker-width: 8;
marker-height: 8;
marker-allow-overlap: true;
marker-ignore-placement: true;
}
}
[waterway = 'lock_gate'] {
#water-barriers-line[zoom >= 13] {
line-color: @lock-gate-line;
line-width: 2;
}
#water-barriers-point[zoom >= 17] {
marker-fill: @lock-gate;
marker-line-width: 0;
marker-width: 8;
marker-height: 8;
marker-allow-overlap: true;
marker-ignore-placement: true;
}
}
}
#piers-poly, #piers-line {
[man_made = 'pier'][zoom >= 12] {
#piers-poly {
polygon-fill: @land-color;
}
#piers-line {
line-width: 1.5;
line-color: @land-color;
[zoom >= 13] { line-width: 3; }
[zoom >= 16] { line-width: 7; }
}
}
[man_made = 'breakwater'][zoom >= 12],
[man_made = 'groyne'][zoom >= 12] {
#piers-poly {
polygon-fill: @breakwater-color;
}
#piers-line {
line-width: 1;
line-color: @breakwater-color;
[zoom >= 13] { line-width: 2; }
[zoom >= 16] { line-width: 4; }
}
}
}
#marinas-area {
[zoom >= 14] {
a/line-width: 1;
a/line-offset: -0.5;
a/line-color: blue;
a/line-opacity: 0.1;
a/line-join: round;
a/line-cap: round;
b/line-width: 3;
b/line-offset: -1.5;
b/line-color: blue;
b/line-opacity: 0.1;
b/line-join: round;
b/line-cap: round;
[zoom >= 17] {
a/line-width: 2;
a/line-offset: -1;
b/line-width: 6;
b/line-offset: -3;
}
}
}
.text {
[feature = 'waterway_dam'],
[feature = 'waterway_weir'] {
#text-poly[zoom >= 15],
#text-line[zoom >= 15],
#text-point[zoom >= 17] {
text-name: "[name]";
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-fill: #222;
text-size: 10;
text-face-name: @book-fonts;
#text-poly {
text-placement: interior;
}
#text-line {
text-placement: line;
text-dy: 8;
text-spacing: 400;
}
#text-point {
text-placement: point;
text-dy: 8;
}
}
}
[feature = 'man_made_breakwater'][zoom >= 15],
[feature = 'man_made_groyne'][zoom >= 15],
[feature = 'man_made_pier'][zoom >= 15] {
#text-poly,
#text-line {
text-name: "[name]";
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-fill: #222;
text-size: 10;
text-face-name: @book-fonts;
#text-poly {
text-placement: interior;
}
#text-line {
text-placement: line;
text-spacing: 400;
}
}
}
}