Skip to content

Commit c2fd5d5

Browse files
authored
Merge pull request #93 from bitctrl/main
Also render pier as landusage
2 parents 02508de + f962ba3 commit c2fd5d5

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

generate_style.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@
181181
where type in (\'forest\',\'wood\',\'pedestrian\',\'cemetery\',\'industrial\',\'commercial\',\
182182
\'brownfield\',\'residential\',\'school\',\'college\',\'university\',\
183183
\'military\',\'park\',\'golf_course\',\'hospital\',\'parking\',\'stadium\',\'sports_center\',\
184-
\'pitch\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"',
184+
\'pitch\',\'pier\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"',
185185
12:'"geometry from (select geometry ,osm_id, type, OSM_NAME_COLUMN as name from OSM_SCHEMA.OSM_PREFIX_landusages \
186186
where type in (\'forest\',\'wood\',\'pedestrian\',\'cemetery\',\'industrial\',\'commercial\',\
187187
\'brownfield\',\'residential\',\'school\',\'college\',\'university\',\
188188
\'military\',\'park\',\'golf_course\',\'hospital\',\'parking\',\'stadium\',\'sports_center\',\
189-
\'pitch\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"'
189+
\'pitch\',\'pier\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"'
190190
},
191191

192192
'display_industrial': 1,

landusage.map

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,33 @@ LAYER
442442
END
443443
END
444444
#endif
445-
#endif
445+
446+
LAYER
447+
TYPE POLYGON
448+
STATUS ON
449+
PROJECTION
450+
"init=epsg:OSM_SRID"
451+
END
452+
NAME layername(landuse_on_water,_layer_suffix)
453+
GROUP "default"
454+
CONNECTIONTYPE POSTGIS
455+
CONNECTION "OSM_DB_CONNECTION"
456+
#if OSM_FORCE_POSTGIS_EXTENT == 1
457+
EXTENT OSM_EXTENT
458+
#endif
459+
DATA _landusage_data
460+
PROCESSING "LABEL_NO_CLIP=ON"
461+
PROCESSING "CLOSE_CONNECTION=DEFER"
462+
MAXSCALEDENOM _maxscale
463+
MINSCALEDENOM _minscale
464+
CLASSITEM "type"
465+
LABELITEM "name"
466+
CLASS
467+
EXPRESSION 'pier'
468+
STYLE
469+
COLOR _pier_clr
470+
END
471+
END
472+
END
473+
474+
#endif

0 commit comments

Comments
 (0)