map-machine icon indicating copy to clipboard operation
map-machine copied to clipboard

Color areas based on various landuse tag values

Open Zero3 opened this issue 3 years ago • 3 comments

I suggest using some of the landuse tag values to color areas. For example, landuse=village_green areas should be colored green. There are probably also some other relevant values for the tag.

Zero3 avatar Apr 22 '22 11:04 Zero3

Thanks for the issue, I'll take a look.

enzet avatar Apr 23 '22 20:04 enzet

Tags from AreasTab.

Leisure and recreation

  • [x] leisure=park
  • [x] landuse=recreation_ground
  • [x] leisure=recreation_ground (should be the same)
  • [x] leisure=playground
  • [x] leisure=fitness_station
  • [x] landuse=grass
  • [x] landuse=meadow (same as grass)
  • [x] landuse=village_green (same as grass)
  • [ ] golf=tee (same as grass)
  • [ ] golf=fairway (same as grass)
  • [ ] golf=driving_range (same as grass)
  • [ ] tourism=camp_site
  • [ ] tourism=caravan_site
  • [ ] leisure=dog_park

Agriculture and industry

  • [x] landuse=farmland
  • [x] landuse=greenhouse_horticulture (same as above)
  • [x] landuse=farmyard
  • [x] landuse=allotments
  • [x] landuse=orchard
  • [ ] landuse=plant_nursery
  • [x] leisure=garden
  • [x] landuse=forest
  • [ ] landuse=forest + leaf_type=broadleaved
  • [ ] landuse=forest + leaf_type=needleleaved
  • [ ] landuse=forest + leaf_type=mixed
  • [ ] landuse=forest + leaf_type=leafless
  • [ ] landuse=vineyard
  • [ ] landuse=quarry
  • [ ] waterway=dam

enzet avatar Apr 26 '22 22:04 enzet

When I looked at doing this in a past project, I ended up with two distinct layers:

  • a "ground cover" layer representing the material of the ground (grass, tarmac, concrete, bush, etc.) and,
  • a "usage" layer, representing meaning that humans invent (landuse like retail or residential, access restrictions, parks, etc.)

I would render the ground cover underneath, and render the usage layer on top, trying to use different techniques to let the groundcover show through. Translucent colours, stripes of colour, patterns of symbols, etc.

The approach worked well, because I could use all sorts of data to determine the groundcover, without worrying about how that data needed to be represented on the map itself. E.g., I would start by painting park areas as grass (guessing that parks imply grass without any further info), then painting gardens, bushland, footways and pedestrian areas over the top, replacing the grass guess where appropriate. Then, the park area is also represented in the "usage" layer on top, showing that the area is "treated like a park".

BudgieInWA avatar Apr 27 '22 07:04 BudgieInWA