GDDCGeospatial

Resource

Analyses.

Soll-Ist, Volumen, Lichtraum-Check, Anomalie-Detection. Asynchrone Operation — du bekommst sofort eine ID zurück und der Worker rechnet im Hintergrund. Webhook beim Fertigwerden.

POST/v1/analyses

Analyse starten

Triggert eine Analyse-Pipeline. Type bestimmt erforderliche Felder.

Body

NameTypBeschreibung
type*soll_ist | volume | clearance | anomaly | classificationAnalyse-Typ
project_id*stringProjekt-ID
pointcloud_id*stringQuell-Pointcloud
soll_model_idstring?Pflicht für type=soll_ist
polygonGeoJSON?Pflicht für type=volume
track_axis_idstring?Pflicht für type=clearance
profilestring?Lichtraum-Profil (z.B. DB_G1)
tolerance_cmint?Toleranz für Soll-Ist / Lichtraum

Beispiel-Response

{
  "id": "ANL_pK9z2D",
  "type": "clearance",
  "status": "queued",
  "project_id": "PRJ_aT3Dd9",
  "pointcloud_id": "PCL_xY9Vn4",
  "queue_position": 1,
  "estimated_seconds": 320
}

Beispiel-Request

curl https://api.geospatial.gddc-sh.de/v1/analyses \
  -H "Authorization: Bearer $GDDC_TOKEN" \
  -d '{
    "type": "soll_ist",
    "project_id": "PRJ_b5Lx2K",
    "pointcloud_id": "PCL_aBc123",
    "soll_model_id": "SLM_q9Dr1H",
    "tolerance_cm": 5
  }'
GET/v1/analyses/{id}

Analyse holen

Aktueller Status und Ergebnis (sobald done).

Path-Parameter

NameTypBeschreibung
id*stringANL_…

Beispiel-Response

{
  "id": "ANL_pK9z2D",
  "type": "clearance",
  "status": "done",
  "duration_ms": 312_400,
  "result": {
    "violations_count": 14,
    "violations": [
      {
        "km": 12.402,
        "class": "vegetation",
        "encroachment_cm": 47,
        "lat": 53.864823,
        "lon": 10.682401,
        "alt": 22.4,
        "snapshot_url": "https://tiles.../snap_001.png"
      },
      "..."
    ],
    "heatmap_url": "https://files.geospatial.gddc-sh.de/ANL_pK9z2D_heatmap.png?...",
    "report_geojson_url": "https://files.geospatial.gddc-sh.de/ANL_pK9z2D.geojson?..."
  }
}

Beispiel-Request

curl https://api.geospatial.gddc-sh.de/v1/analyses/ANL_pK9z2D \
  -H "Authorization: Bearer $GDDC_TOKEN"
GET/v1/analyses

Analysen listen

Filterbar nach Project / Type / Status.

Query-Parameter

NameTypBeschreibung
project_idstring?Filter
typestring?Filter auf Analyse-Typ
statusstring?queued | running | done | failed

Beispiel-Response

{
  "items": [
    { "id": "ANL_pK9z2D", "type": "clearance", "status": "done" },
    { "id": "ANL_qR2x4L", "type": "volume",    "status": "running" }
  ],
  "next_cursor": null
}

Beispiel-Request

curl "https://api.geospatial.gddc-sh.de/v1/analyses?project_id=PRJ_aT3Dd9" \
  -H "Authorization: Bearer $GDDC_TOKEN"