Worker jobs
Use this page with Global Geobase context and Worker API (base URL + auth).
Job quick reference
| Job | Purpose | Guide |
|---|---|---|
osmImportArea | OpenStreetMap extract → project tables | OpenStreetMap import |
overtureImportArea | Overture Maps layers → {prefix}_{suffix} tables | Overture import |
ogr2ogrImport | File URL → Postgres via ogr2ogr | Worker OpenAPI /doc |
createGeoEmbeddings | GeoTIFF → geoembeddings.* | RPC API (query after) · GeoParquet |
createSraiEmbeddings | SRAI OSM + H3 → geoembeddings.* | Automated SRAI pipeline |
archiveToPmtiles | PostGIS table → Storage pmtiles/{table}.pmtiles | Archive to PMTiles |
Cancel: DELETE {WORKER_BASE_URL}/jobs/{taskName}/{job_id} (Studio: DELETE /api/projects/{ref}/jobs/{taskName}/{job_id}).
createGeoEmbeddings
| Field | Required | Notes |
|---|---|---|
geotiffPath | yes | HTTPS (or worker-reachable) GeoTIFF / COG path |
tableName | yes | PostgreSQL identifier → geoembeddings.{tableName} |
normalizeEmbeddings | no | default true |
tileSize | no | default 256 |
modelName | no | default dinov3-vitl16-pretrain-sat493m |
bands | no | band indices |
uploadArtifactsToStorage | no | default false; GeoParquet (+ metadata) to Storage |
projectTarget | shared pool | include projectRef (and DB/service credentials as required by the pool) |
Fleet size guards (fail before ONNX): GEOEMBEDDINGS_MAX_TILES (default 10000), GEOEMBEDDINGS_MAX_GEOTIFF_BYTES (default 100 MiB); 0 disables.
curl -sS -X POST "${WORKER_BASE_URL}/jobs/createGeoEmbeddings" \
-H "apikey: ${GEOBASE_SERVICE_ROLE_KEY}" \
-H "Authorization: Bearer ${GEOBASE_SERVICE_ROLE_KEY}" \
-H "Content-Type: application/json" \
-d '{
"geotiffPath": "https://example.com/scene.tif",
"tableName": "my_embeddings",
"tileSize": 256,
"uploadArtifactsToStorage": true
}'After success, query with RPC API or download artifacts via Connect to GeoParquet.
createSraiEmbeddings
See Automated SRAI pipeline for tableName, h3Resolution, placeQuery / aoiGeoJson, tags/presets, and Studio UI.
Imports and archive
- OSM / Overture: require AOI fields (
areaName,aoiGeoJson, plustopicsortypesfor Overture) — see import guides. archiveToPmtiles: body{ "table": "…" }(optionalschema, zooms); Storage bucketpmtilesmust exist.
Human checkpoint
Poll job status until success / failed before wiring UI; validate payloads against {WORKER_BASE_URL}/doc.
Links
Last updated on