A versioned geodatabase on PostgreSQL and PostGIS. Branch, commit, diff and merge geographic datasets, and read them over REST, OGC API - Features and an ArcGIS FeatureServer facade.
features view any PostgreSQL client can read without Ptolemy runningptolemy serve)ghcr.io/geolang/ptolemy, docker-compose and a Helm chart/metrics for an admin tokenPLATFORM_JWT_SECRET, roles admin, editor and viewer/protocol/openid-connect/…, so a provider that spells them differently does not workptk_) from ptolemy api-key create, and scoped tool tokens/arcgis/rest/services, so Esri clients connect unchangedquery takes the SQL-92 where subset those clients send, paging, outSR/inSR, an envelope filter and f=json, pjson or geojsonreturnDistinctValues, outStatistics with groupByFieldsForStatistics, and having over the same seven functionsapplyEdits lands the whole batch as one commit on main, or refuses all of itextractChanges deltas against a generation the client holdsdrawingInfo, or translated to Mapbox GL layers at /api/v1/datasets/{id}/styleX-Esri-Authorization or a token parameter, read under this prefix and nowhere elseapplyEdits, as on a commitGET /api/v1/audit, instance admin only/api/v1/branches/{id}/features/at?at=valid_from and valid_to, filtered with valid_atPTOLEMY_ANALYZE_ROW_THRESHOLD rows/api/v1/features/{id}/related/api/v1/datasets/{id}/stylesimplified and changes nothingptolemy serve --bind 0.0.0.0:3000# Clone and build
git clone https://github.com/GeoLang/ptolemy.git
cd ptolemy
cargo build --release
# Start with a PostGIS database. serve refuses to start without a signing
# secret of 32 bytes or more, and applies migrations before it binds
export DATABASE_URL="postgres://user:pass@localhost/ptolemy"
export PLATFORM_JWT_SECRET="$(openssl rand -hex 32)"
./target/release/ptolemy serve --bind 0.0.0.0:3000
# Check health
curl http://localhost:3000/api/v1/healthz
curl http://localhost:3000/api/v1/readyz