New
Apps 6,409Makers 6,388This week 12
Promote your app−30%
erzberg screenshot 1
3views in
the last 30 days

erzberg

Turn heightmaps and GeoTIFFs into pen-plotter line art in the browser

Built with Claude Code

by sorny · Unclaimed · from ATAustria · added Oct 29, 2026
no ratings0 comments

erzberg

Turn elevation data into line art. A topographic visualisation tool built on React Three Fiber.

sorny.github.io/erzberg


Load a greyscale heightmap (8-bit or 16-bit PNG), a GeoTIFF, or an audio file. The app renders it as 3D line art with 56 independent draw modes: surveyor's marks such as hachures and contours, tone, relief, colour plates, light, wind, growth, and tracks that something with mass laid down a face. Contours letter their own heights.

Export to SVG for a pen plotter, to STL for a printer, or to 4K PNG for the wall.

Everything runs locally in your browser. Your files never leave your machine. There is no server, no upload and no account, and the app makes no third-party request on load. Three features contact a server, and only when you press their button:

  • Vector Layers asks OpenStreetMap for features inside the raster's extent.
  • Fetch asks a geocoder for a place, then a tile host for the ground under it.
  • Satellite asks an open archive for a Sentinel-2 scene over the extent.

Each sends a place name or a bounding box. None sends a file or needs a key.

Unknown Pleasures preset Alpine Survey preset Static preset
Unknown Pleasures — stacked ridgelines Alpine Survey — hypsometric fill, hillshade, contours Static — slope-inverted stipple dots
Thermal Camera preset Copper Plate preset X-Ray preset
Thermal Camera — hypsometric fill + sky-view AO Copper Plate — curvature engraving X-Ray — lines and crosshatch, ghost-occluded

Six of the 65 bundled presets, rendered by the app's own PNG exporter from the sample heightmap.


Quick start

Use the hosted version, or run it yourself:

npm install
npm run dev              # http://localhost:5173

The app opens on a bundled sample heightmap under a style preset. Pick a different style from the grid, then tune it.

The panel

  • Dark and light. The sun or moon in the panel head switches the theme. The choice is remembered per browser. Both themes use the brand's own colours: iron, paper and ore. Ore is the one accent, and it means "on".
  • Stages. A rail on the panel edge holds six stages in pipeline order: Terrain, Surface, Marks, Overlay, Frame, Output. The body shows one stage at a time. A Presets slot sits above them. Each tab shows a green count of the sections that are on inside it. The arrow keys move along the rail, and [ ] change the stage from anywhere.
  • Marks sheet. The Marks stage shows the 62 modes as tiles in seven families: Line, Tone, Relief, Plate, Light, Momentum and Chart. The ring in a tile corner switches the mode on. The rest of the tile opens its controls. An open mode has its own switch in its header. Line style, Gradient, Masks, Occlusion and Copies fold to one line that shows their setting.
  • Search. The field at the top filters sections by title and by their own terms. Type azimuth and only Hillshade remains. The search crosses all stages.
  • Summaries. A collapsed section shows its setting on the right, for example 315° · 60%. A section that is off shows —. The head line counts what you composed: 4 marks · 3 inks · 2 layers.
  • Session. The app saves your parameters and text layers to the browser and restores them on the next visit. It does not store the raster.
  • Reset. Reset all returns everything to defaults. A ↺ in a section header resets that section only. Both offer Undo for eight seconds. src/components/panel/sectionParams.js states what each section owns, and a unit test holds it against the panel source.
  • History. ⌘Z undoes. The ▾ beside Undo lists each named step, for example Hillshade or Preset · Blueprint. Click a step to jump to it.
  • Cost. The stats line reports how long the last rebuild took. Most modes rebuild the sample in under 0.1 s. Sun Hours takes about 2 s. A spinner appears after 0.25 s, and a full-screen cover after 1.2 s.

Input

Source Notes
PNG 8-bit or 16-bit, decoded natively. Alpha is NoData.
GeoTIFF Real elevation. The panel states the file's CRS, honours its NoData value, and suggests a vertical exaggeration from the pixel size.
Audio MP3, WAV, OGG or M4A, analysed into a spectrogram that drives the terrain. See Soundscapes.
GPX / GeoJSON Tracks, points, lines and polygons, draped over a georeferenced raster.
Fetch Type a place. Nominatim resolves it, and a map lets you place and size the box before you download. The panel states the zoom, tile count, raster size and metres per pixel first. Tiles come from Terrain Tiles on AWS Open Data.
OpenStreetMap Roads, water, rail, landuse, buildings, lifts and peaks inside the raster's extent, through Overpass.
Satellite True-colour Sentinel-2 at 10 m from AWS Open Data. It drapes on the terrain and backs the Mask Studio.
Mask A PNG, JPG or WebP stencil, a drawn mask, or a mask made from heights or features. See Masks.
Cover plate A .landcover.json from scripts/embed-window.js. See Land cover.
The Fetch section: a shaded-relief map of the Eiger with a draggable selection box, above a readout of zoom 13, 20 of 36 tiles, a 915 by 921 pixel raster and 13 metres per pixel

A smaller Fetch box gives a sharper raster, not a smaller file. The zoom is always the finest that fits the 36-tile budget.

Drag and drop. Drop a file anywhere on the window. The app routes it by its content, not by guess:

  • A GeoTIFF becomes the terrain.
  • A GPX or GeoJSON becomes an overlay.
  • A cover plate becomes the land cover.
  • A preset JSON, or a PNG or SVG that this app exported, restores the look.

A PNG with the app's tEXt chunk is a preset. A PNG without it is terrain.

Vector layers. OpenStreetMap data arrives as one layer per tag class, for example Roads · Motorway or Water · Stream. Each layer has its own colour, weight, opacity, dash and optional slope-following fill. The list is a stack: drag a row to change what covers what. Inside a layer, each feature has a checkbox. Rest the pointer on a feature to name it and light it up.

A point feature can carry its name and height as labels, in Space Mono or in one of 49 single-line fonts (Hershey, EMS, Relief SingleLine, ISO 3098 and three plotter faces). A stroke face plots each letter as centre lines, so the label layer of the SVG is about a quarter of the size. The SVG writes real <text>. A point can also show one of sixteen SVG icons, or your own file, on a leader line.

Every layer is simplified to what the DEM can express and draped on the ground. A recolour or a restack costs a frame, not a rebuild. Each layer becomes one Inkscape layer in the SVG. → Georeferencing

Projections. The app supports geographic CRS, Web Mercator, and the WGS84, ETRS89, NAD83 and NAD27 UTM zones. It names and declines national grids that need a datum shift, rather than approximate them. If features do not appear, the panel says why. Source → Extent lists the place, size, projection and metres per pixel, and one row per layer with its source.


Land cover

The draw modes read the shape of the ground. A cover plate adds what the ground is: one class per pixel, from AlphaEarth Foundations (Google DeepMind's 64-dimension satellite embedding, 10 m, 2017–2024).

Cut a plate with the script. Give it an existing GeoTIFF, or a place:

node scripts/embed-window.js --dem my-terrain.tif --classes 6
node scripts/embed-window.js --place "Eisenerz" --km 4 --classes 6

Then drop <name>.landcover.json on the window. The Land Cover section prints the command for the terrain on screen. The step is a script because the embedding bucket sends no CORS header, so a browser cannot read it.

The script names each class from the OpenStreetMap landcover it overlaps, for example Forest · steep — 54% forest, 36% quarry. The section draws the plate as a map with a legend.

A plate gives you four things:

  • Masks. Each layer takes a row of class swatches. It draws only on the classes you pick. This works for all 62 modes.
  • Class colours. Any mode can take the class ink or the plate colour, as one pen layer per class.
  • Ink by land class. One press gives each class its own mark, ordered by mean slope.
  • The Land cover mode. A colour plate from the classes.

The app refuses a plate that does not cover the same ground as the raster. The dataset is CC-BY 4.0, and the credit goes into every export that uses it. → Land cover


Masks

A mask marks ground that only you can choose. It restricts a layer the same way a land-cover class does, and a layer can carry both.

  • Draw. Masks → + Draw a mask opens the Studio: brush, rectangle, ellipse and lasso. E erases and [ ] resize the brush. The backdrop is satellite imagery, relief or height, the same choice as Edit Mode.
  • From level. The Studio's Level tool takes the ground between two heights. The wash previews the result while you drag the sliders.
  • From features. The Studio's Features tool rasterises any loaded OSM or GeoJSON layer. Areas fill, lines become corridors, points become discs. A negative buffer shrinks the shape. A boundary counts as an area.
  • Combine. Level and Features Replace, Add, Subtract or Intersect with the mask. ⌘Z in the Studio steps back through the last ten changes.
  • Import. A PNG, JPG or WebP. White is inside. Black and transparent are outside.
  • Copy. ⧉ duplicates a mask with a new colour.

Satellite imagery. Satellite → ↓ Fetch imagery gets the least cloudy growing-season Sentinel-2 scene of the last three years. The raw product is very dark, so Auto levels stretches the window's histogram to mid-grey. Brightness, Contrast and Saturation are also available. The Copernicus credit goes into every export that uses it. → Masks


Edit Mode

Edit Mode: a lasso selection with editable points and a feathered edge over the heightmap

Press E. The viewport shows the raster flat. Crop it with a rectangle, an ellipse, a lasso or a polygon, or clip it to a feature from a loaded layer, for example a municipality or a lake.

  • C, O, L, P and F pick Crop, Ellipse, Lasso, Polygon and Features. The Features tool shows the outline before you clip.
  • Drag a point to move it. Drag an edge to add a point. Right-click a point to remove it.
  • ⌘Z undoes a change to the clip. Cancel discards the whole draft.
  • Feather ramps the clipped edge down to the base level.
  • The clip is non-destructive. Enter Edit Mode again to change it, or clear it.

Edit Mode works on a PNG, a GeoTIFF and a Soundscape. A GeoTIFF bounding box is re-derived for the crop, so vector layers stay in place. Every draw mode stops at the cut. → Edit Mode


Draw modes

Every mode runs independently, with its own colour, weight, line style (solid, dashed, short, long or round dots) and colour: the line colour, a gradient by height, slope or aspect, or the land cover class. Each mode also sets whether it is an occluder, and a halo that breaks the lines behind it. → Draw mode mathematics · Occlusion

Duplicate this mode, in the Copies block at the foot of a mode's section, adds a copy of the mode with its own settings, mask and pens: for example, dense contours on forest and sparse ones on rock. → Copies

Mode Technique
Lines Parallel terrain ridgelines at any bearing
Crosshatch Two perpendicular line sets at a set angle, with optional plus signs at the intersections as their own pen
Pillars Vertical extrusion per cell (line, cuboid or cylinder), below and optionally above the ground, inked by land cover class
Contours Marching Squares isolines, with optional ring closing and Chaikin smoothing
Hachure Slope-directed short strokes, or Lehmann downslope strokes between contours
Flow Lines Euler-integrated drainage paths
Stream Network Strahler-order network, optionally weighted by flow accumulation
Pencil Shading Laplacian curvature
Ridge Detection Hessian eigenvalue crests
Valley Detection Topographic Position Index troughs
Stipple Dots Stochastic dot density from slope or elevation
Isophotes Lines of constant illumination
Shadow Line The shadow edge at one date, time and zone
Sun Hours Isolines of hours in direct sun, over a year or one date
Engraving Copperplate cross-hatch, up to 4 stacked directions
Curvature Streamlines through the principal-curvature field
Rock & Scree Swisstopo-style cliff hachures and scree dots
Bitplane Marching squares without interpolation, with a Bayer screen
Sprite Blocks The same quantiser drawn as blocks
Flashbulb A point light in the scene with 1/r² falloff and a cast shadow
Halation Blown highlights that bleed into the shadow beside them
Reticulation Worley cell walls thinned by tone
Fall Line Descent with mass: it overshoots, banks and runs out
Berms Lateral load on the outside of each turn
Air Spans where the ballistic path clears the surface
Race Line All lines from one drop-in, the fastest inked heavier
Crossings Sign changes of the detrended scanline
Indexed Elevation tier by slope class, Bayer-dithered
Outrun An additive halo under a near-white filament
Riso Three spot inks screened at 15°, 45° and 75°, multiplied
Mineral Five materials by slope and curvature, each with its own grain
Landforms Ten landforms by geomorphons (peak, ridge, spur, hollow, valley …), one ink each. Every mode can also draw only on chosen landforms, or take its colour from them
Land cover The classes of a loaded cover plate
Watershed One flat ink per catchment
Single Line One travelling-salesman tour through a weighted stipple
Shadow Hatch Cross-hatching only inside cast and attached shadow
Roughness Mesh Delaunay or Voronoi net, dense where the ground is rugged
Isochrones Lines of equal walking time from one point (Tobler's hiking function)
Truchet Quarter-arc tiles turned to follow the slope
Viewshed The ground visible from one point, hatched
Route The fastest walk between two points, with its time
Panorama The ridges seen from one point, each where it hides the ground behind it, and the skyline
Bedding Where tilted layers of rock crop out, for a dip and a dip direction, with a marker bed
Slope Classes The avalanche map's bands, 30–35°, 35–40° and over 40°, one hatch and one pen each
Wind Streamlines of one wind, bent along the slopes, crowded on the crests, broken in the lee
Runout Where falling rock stops, by the reach angle of hazard maps, with the release zones
Venation Leaf veins grown up the wet ground from the outlets (space colonization)
Geodesic Fan Straight lines on the ground from one point, bent round the mountains
Radar A side-looking radar's view as range ticks, with layover and radar shadow
Spines The skeleton of the ground above each of a stack of levels
Coral One closed line grown by differential growth until it fills the high ground
Glacier Ice above a snowline, with blue contours, crevasses and moraine
Map Grid A grid at a round true distance from the south-west corner, as lines or crosses, with the map sheet's edge scale in km
Line Printer A SYMAP line-printer map: one glyph per character cell, from a dot to an overprinted block
Stems A dotted stem from a datum to the ground at each cell, with a dot at the tip
Hair A short curling stroke at each cell; seen from the side, the overlap is the tone
Waveform A column of scanlines read along a line through the summit, the middle or a picked point, at any direction, mirrored or one-sided, as on a record sleeve. The line shows on the terrain while its section is open
Profile Sheet A surveyor's profile sheet: parallel transects as rising profiles over a numbered station rule at every bend, with a band of cross profiles
Swath Profile The mean, highest and lowest height across a strip along the plate, the envelope hatched, in metres and kilometres
Hypsometry Strahler's hypsometric curve, with its histogram and the hypsometric integral
Aspect Rose A rose diagram of the way the ground faces, weighted by slope, on an equal-area scale
Stereonet Every slope's pole on a lower-hemisphere equal-area net, with density contours

Indexed, Mineral, Land cover and Watershed export as closed filled paths, one pen layer per ink. Set Filled areas in the SVG to Hatch (Output) and each fill becomes hatch strokes a pen can draw, denser for darker inks.

Occlusion. Under Occluder: Lines, the default, each stroke hangs an invisible wall down to the base, so lines hide other lines: the classic ridgeline look. Each mode can stop being an occluder, and marks such as Hachure start that way. Under Occluder: Ground, the terrain hides what is behind it, with or without a fill. A mode's Halo breaks the lines behind its strokes. Stroke depth bias keeps strokes on steep slopes at full width in front of the terrain. Hidden segments can take their own colour and opacity.

Pen layers. Output lists the layers the SVG will hold under the SVG button: one row per pen, with its ink. A layer coloured by height or slope says mixed, because one pen cannot draw it as shown; One ink sets that mode's Colour to Line. The line at the top of the panel gives the same count (3 layers · 1 ink · 2 mixed). Preflight counts exactly when filled areas or hidden lines are drawing.

Inks as picked. By default inks pass through a filmic tone curve and look softer on screen. Swi

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#pen-plotter · #generative-art