Gallery / Maps & spatial

sf

Height bands with holes punched out

Two slopes of Maunga Whau, each the area inside one contour and outside the next. The interior ring and the even-odd rule are what leave the middle open.

Height bands with holes punched out

Source

Svelte, builder, JSON

<script lang="ts">
  import {
    CoordFixed,
    GeomSf,
    GGPlot,
    Labs,
    ThemeClassic,
  } from "@ggsvelte/svelte";

  import { slopeBands } from "./data.js";
</script>

<GGPlot data={slopeBands} aes={{ fill: "band" }} width={640} height={400}>
  <ThemeClassic />
  <CoordFixed />
  <Labs
    title="Two bands of the same hillside"
    subtitle="Each band is one ring with the next punched out; each hole is the ground above the higher contour"
    fill="Height band"
  />
  <GeomSf alpha={0.75} linewidth={0.9} />
</GGPlot>

Meta

Details

Family
Maps & spatial
Source
sf/holes
Rendering
SVG
Techniques

sf · geojson · polygon · hole · evenodd · fill · map · geom