Gallery / Maps & spatial

sf

One feature with two separate polygons

Geometry collections when one logical feature spans disconnected pieces.

One feature with two separate polygons

Source

Svelte, builder, JSON

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

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

<GGPlot data={aboveOneEighty} aes={{ fill: "ground" }} width={640} height={400}>
  <GeomSf alpha={0.85} linewidth={0.9} />
  <CoordFixed />
  <ThemeClassic />
  <Labs
    title="One feature with two separate polygons"
    subtitle="Land above 180 m as a single collection: the summit ridge and a rise east of it"
    fill=""
  />
  <Inspect mode="exact" pin />
</GGPlot>

Meta

Details

Family
Maps & spatial
Source
sf/geometry-collection
Rendering
SVG
Techniques

sf · geojson · geometrycollection · polygon · fill · map · geom