[Feature]: Block diagram walls: draw the walls layer's fill patterns (hatch, dots) and contact lines

Open
#2,606 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start from the walls rendering path added in #2173: search the repository for fillLayers, hatch, dots and the handling of the walls command to see where wall polygons are built and filled. Read how the map layer applies per-class fills so the same pattern parameters can be reused in wall space, with the hatch angle measured from the wall's top edge and spacing in points. Done means the walls show the layer's hatch/dot patterns per unit and draw a thin contact line where units meet; check the result against the geological example in the issue.

Written by the indexing model from the issue text.

Description

#2173 colours a block diagram's walls by a polygon layer, using solid fills only; its body left patterns as a follow-up. Geological block diagrams use the lithology pattern on the section: crosses for granite, waves for gneiss, dots for sediments. The walls are where the reader sees the rock, so they are where the pattern matters most.

Choices in this proposal

  • The walls use the fills the layer already has on the map (layer.fillLayers: hatch and dots, with their own colour, spacing and angle). The command needs nothing new: "walls": {"layer": "geology"} picks up the layer's fills, per class.
  • The pattern is laid in wall space: the hatch angle is measured from the wall's top edge and the spacing is in points on the picture, so it does not stretch with exaggeration or foreshortening.
  • A thin dark line is drawn where two units meet on a wall, as the ground draws the polygons' outlines.
  • Contacts stay vertical, as they are now. A schematic dip with depth would be a separate issue.

Use case
Regional teaching blocks, for example 70 km across the Zona da Mata of Minas Gerais, with the geology on the walls. A Python prototype draws the patterns today; in RustGIS the walls come out as flat colours, so units with close colours (several granites, several gneisses) cannot be told apart.

Dominant language
Rust
Stars
1.9k
Forks
268
Avg merge
11h 1m
Merged PRs (30d)
942

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opengeos/RustGIS

All issues in opengeos/RustGIS

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.