Isometric OMF Buildings
Technology: QGIS, Overture
Fun Fact: The pinnacle of my childhood doodling was drawing isometric cubes.
Style buildings from Overture Mapping Foundation using geometry generators in QGIS.
-
Start by downloading @newgeographer2's geopackage (found here), which includes the full style customized to work with OpenStreetMap buildings.
-
Download OMF buildings using the method of your choice (instructions).
-
OMF data will be in a geographic (lat/lng) coordinate reference system. Reproject the downloaded data to a projected coordinate reference system.
-
Add downloaded geopackage and buildings to QGIS.
-
Copy style from geopackage, paste style into buildings.
-
Open buildings
Properties -> Symbology tab
. Open the rule-based symbol properties.a. Clear the filter.
b. Change the first Geometry Generator layer expression to:
translate( $geometry, cos( radians( @qgis_25d_angle ) ) * max("height" * 2, 20), sin( radians( @qgis_25d_angle ) ) * max("height" * 2, 20) )
c. Change the second Geometry Generator layer expression to:
order_parts( extrude( segments_to_lines( $geometry ), cos( radians( @qgis_25d_angle ) ) * max("height" * 2, 20), sin( radians( @qgis_25d_angle ) ) * max("height" * 2, 20) ), 'distance( $geometry, translate( @map_extent_center, 1000 * @map_extent_width * cos( radians( @qgis_25d_angle + 180 ) ), 1000 * @map_extent_width * sin( radians( @qgis_25d_angle + 180 ) ) ) )', False )