Skip to content

refactor(examples): rename usgs-topo-cutline to usgs-topo and use the default pipeline - #741

Merged
kylebarron merged 1 commit into
mainfrom
kyle/usgs-topo-example
Oct 21, 2026
Merged

kylebarron merged 1 commit into
mainfrom
kyle/usgs-topo-example

Conversation

@kylebarron

Copy link
Copy Markdown
Member

Note

This PR was written by Claude (Claude Code), not by @kylebarron.

Renames the usgs-topo-cutline example to usgs-topo and removes its custom tile pipeline.

  • Default pipeline: the example's getTileData padded RGB to RGBA and uploaded a texture, and its renderTile returned only CreateTexture. COGLayer's inferred pipeline does the same for these JPEG-compressed RGB sheets and destroys its own textures, so the custom getTileData, renderTile, onTileUnload, the rgbToRgba helper and the ../../../packages/deck.gl-geotiff/dist type import are gone. Since refactor(deck.gl-raster)!: remove CutlineBbox in favor of deck.gl's ClipExtension #739 the collar is cut with ClipExtension, which doesn't need a render-pipeline module.
  • Rename: updated the folder, the package name (deck.gl-usgs-topo-example), the publish script, the vite base, the page title and the control panel's source link.
  • Dependencies: dropped @developmentseed/deck.gl-raster and @developmentseed/geotiff, which the example no longer imports. What's left matches cog-basic.

The deployed URL moves from /examples/usgs-topo-cutline/ to /examples/usgs-topo/. The old URL will 404. Nothing on the docs site links to it.

I checked the example in Chrome. With the default pipeline, the Emigrant Gap (1955) and Moab (1885) sheets render with the same colours as before, and the cutline on/off toggle still works.

Closes #740

🤖 Written by Claude Code

… default pipeline

The example's custom tile loader and render pipeline only padded RGB to
RGBA and uploaded a texture, which COGLayer's inferred pipeline already
does for these JPEG-compressed RGB sheets. Since #739 the collar is cut
with ClipExtension rather than a render-pipeline module, so nothing in
the example needs a custom pipeline any more.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@kylebarron kylebarron left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@kylebarron
kylebarron merged commit cd765ea into main Oct 21, 2026
3 checks passed
@kylebarron
kylebarron deleted the kyle/usgs-topo-example branch October 21, 2026 00:28
kylebarron added a commit that referenced this pull request Oct 21, 2026
> [!NOTE]
> This PR was written by Claude (Claude Code), not by @kylebarron.

Adds a "USGS Historical Topo Maps" card to the COG section of the
examples page. It links to the `usgs-topo` example (renamed in #741),
and its description points to deck.gl's `ClipExtension`, which cuts away
each sheet's collar. The card image is a Mount St Helens (1919)
screenshot by @kylebarron at 2488x1404 (about 16:9, the same size as the
COG on Terrain card).

🤖 Written by [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simplify usgs-topo example

1 participant