Skip to content

Commit

Permalink
Merge pull request #93 from bitctrl/main
Browse files Browse the repository at this point in the history
Also render pier as landusage
  • Loading branch information
yjacolin authored Sep 25, 2024
2 parents 02508de + f962ba3 commit c2fd5d5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generate_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@
where type in (\'forest\',\'wood\',\'pedestrian\',\'cemetery\',\'industrial\',\'commercial\',\
\'brownfield\',\'residential\',\'school\',\'college\',\'university\',\
\'military\',\'park\',\'golf_course\',\'hospital\',\'parking\',\'stadium\',\'sports_center\',\
\'pitch\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"',
\'pitch\',\'pier\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"',
12:'"geometry from (select geometry ,osm_id, type, OSM_NAME_COLUMN as name from OSM_SCHEMA.OSM_PREFIX_landusages \
where type in (\'forest\',\'wood\',\'pedestrian\',\'cemetery\',\'industrial\',\'commercial\',\
\'brownfield\',\'residential\',\'school\',\'college\',\'university\',\
\'military\',\'park\',\'golf_course\',\'hospital\',\'parking\',\'stadium\',\'sports_center\',\
\'pitch\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"'
\'pitch\',\'pier\') order by area desc) as foo using unique osm_id using srid=OSM_SRID"'
},

'display_industrial': 1,
Expand Down
31 changes: 30 additions & 1 deletion landusage.map
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,33 @@ LAYER
END
END
#endif
#endif

LAYER
TYPE POLYGON
STATUS ON
PROJECTION
"init=epsg:OSM_SRID"
END
NAME layername(landuse_on_water,_layer_suffix)
GROUP "default"
CONNECTIONTYPE POSTGIS
CONNECTION "OSM_DB_CONNECTION"
#if OSM_FORCE_POSTGIS_EXTENT == 1
EXTENT OSM_EXTENT
#endif
DATA _landusage_data
PROCESSING "LABEL_NO_CLIP=ON"
PROCESSING "CLOSE_CONNECTION=DEFER"
MAXSCALEDENOM _maxscale
MINSCALEDENOM _minscale
CLASSITEM "type"
LABELITEM "name"
CLASS
EXPRESSION 'pier'
STYLE
COLOR _pier_clr
END
END
END

#endif

0 comments on commit c2fd5d5

Please sign in to comment.