geolens-io / geolens-examples

Runnable examples

GeoLens is a self-hosted spatial data hub.

One place to catalog, search, map and analyze your spatial data. It publishes all of it through OGC API Features and Records, STAC, vector tiles and raster tiles. The integration is a URL.

So the client library never has to know what GeoLens is. Every browser and Python example here is one file that reads the public demo anonymously, with no key and no build step. Most need no GeoLens library at all; the two marked SDK use one to show what the catalog knows that a URL cannot. The CLI card is the exception: publishing writes to a catalog, so it runs against your own instance with a credential.

GET /api/collections/{id}/items GeoJSON features
GET /api/tiles/{table}/{z}/{x}/{y}.pbf Vector tiles
GET /raster-tiles/{id}/tiles/{z}/{x}/{y}.png Raster tiles

See what GeoLens itself builds

Maps composed and styled in the GeoLens map builder, then published on the public demo. All four open without an account.

Start where you work

CI replays every "Try live" card against the live demo on every change and once a week; the runs are public.

Run your own

The demo these examples read is not yours. One command starts an instance that is, with Docker Compose; open http://localhost:8080, then point any example at it by changing the one constant at its top.

curl -fsSL https://getgeolens.com/install.sh | sh