Add Snowflake vector-tile demo (tileserver) as installable skill#282
Merged
Conversation
Three-arm vector-tile sample under samples/geospatial/tileserver: - dynamic ST_AsMVT via Martin on SPCS - precomputed PMTiles baked from the same data - native H3 aggregation for client-side deck.gl Packaged as a one-command, idempotent Cortex Code skill (.cortex/skills/deploy-tileserver) that detect-reuse-else-creates the Snowflake Postgres + PostGIS instance, SPCS infra, and the Martin service.
Syncs the latest deploy-tileserver skill into samples/geospatial/tileserver: - add build_source_snapshot.py (owned SOURCE_FEATURES snapshot, immune to a mid-run Marketplace share lapse) and teardown_tileserver.sh (dependency-ordered cleanup, optional Postgres drop) - preflight auto-installs Python deps and verifies the container daemon is live before any billable infra - rewritten README and a note that tippecanoe's progress meter is non-linear (plateaus at z11 then races through z12; not a hang) .... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) Co-Authored-By: Cortex Code <noreply@snowflake.com>
- describe what the Martin tile server does (function sources for arm 1, mounted PMTiles for arm 2, catalog/TileJSON/Web UI) - add an open-source components table (Martin, PostGIS, tippecanoe, PMTiles, MapLibre GL, deck.gl) with roles and licenses - explain how the deploy-tileserver Cortex Code skill installs the stack, from Cortex Code or directly from a shell, and the layer order .... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) Co-Authored-By: Cortex Code <noreply@snowflake.com>
- install_tileserver.sh now ends with a clear readiness banner: the public app URL, numbered next steps (sign-in, Web UI Inspect Tile Source for arms 1/2, raw tile endpoints, arm-3 H3 export + viewer), and a teardown/billing reminder. Handles the endpoint-not-yet-resolved case with the SHOW ENDPOINTS command. - SKILL.md: add an "After a successful install" section so the skill runner relays the same URL and steps to the user. .... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) Co-Authored-By: Cortex Code <noreply@snowflake.com>
sfc-gh-ridasafdar
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a self-contained Snowflake vector-tile demo under
samples/geospatial/tileserver/, packaged as a one-command, idempotent Cortex Code skill (.cortex/skills/deploy-tileserver).The sample demonstrates three ways to serve the same dataset as vector tiles on Snowflake, so users can compare the tradeoffs:
ST_AsMVTper tile from Snowflake Postgres + PostGIS; reflects edits immediatelyfeatures_mvt(z,x,y)function source auto-published by Martin (SPCS).pmtilesarchive (tippecanoe) mounted into the same Martin serviceexport_h3.py-> deck.glH3HexagonLayer, no tiles/serverThe viewer is Martin's built-in Web UI on the public SPCS ingress.
Install
Idempotent, detect-reuse-else-create: provisions the Snowflake Postgres + PostGIS instance, SPCS infra (image repo, compute pool, stages, secret, EAIs), bakes PMTiles, and deploys the Martin service.
--no-pmtilesskips the heavy bake.Notes
.pmtiles,.geojsonl,.mbtiles) are gitignored and not committed.-nclean); the installer has not yet been run end-to-end against a fresh account.