Model Georeferencing and Survey Overlays

Read flight positioning evidence and transform an independent survey into a model's recorded coordinate frame.

Photogrammetry uses the flight's own positioning observations. Rover points and DXF surveys are optional, independent overlays. Adding a survey later does not refit, translate or change the model. Flights with ordinary GPS remain supported; models without usable position observations remain explicitly local-only.

Read the model's report

GET /v1/spatial/bundles/{modelBundleId}/georeferencing
Authorization: Bearer <token>

The response contains status, frame, quality and reasonCode. available means the bundle carries matching versioned frame/report artifacts. It does not mean centimetre accuracy has been established. local-only returns a quality report but no geographic frame. unavailable covers older outputs without the required evidence. Missing evidence is never a zero-error result.

The frame records its origin, east/north/up axes, metre units, complete column-major local-to-geocentric matrix, alignment transform and frameId. Its mathematical ellipsoid does not establish the flight's GNSS datum. The separate reference fields preserve the declared datum, source and evidence; unknown realization, coordinate epoch and height reference remain unknown.

The report contains registration coverage, fixed/float/unknown acquisition counts, receiver-reported standard deviations and camera-position residuals. cameraAgreement.selectedForAlignment describes the references used to align the model. allMatched, withinThreshold, outsideThreshold and cameraGroups expose disagreement elsewhere in a mixed capture. Threshold classification is post-fit classification, not an assertion of native RANSAC membership.

Each metric includes its sample count. Distances are metres; missing statistics are null. Receiver uncertainty and residuals against inputs reused in fitting are not independent absolute model accuracy. independentValidation is separate; the absence of independent checkpoints does not prevent processing an RTK flight.

Place a survey

Normalize DXF drawing coordinates to easting, northing and height in metres, then send batches of at most 20,000 points. Copy the exact frameId from this model's report. The client cannot supply a replacement target frame or storage path.

POST /v1/spatial/bundles/{modelBundleId}/georeferencing/transform
Authorization: Bearer <token>
Content-Type: application/json

{
  "frameId": "<64-character frame ID returned by the model endpoint>",
  "source": {
    "horizontalCrs": "EPSG:31467",
    "verticalCrs": "EPSG:7837",
    "unit": "m"
  },
  "points": [[3517471.437, 5383730.165, 287.597]]
}

The example declares DHDN/GK zone 3 and DHHN2016 heights. Select these only when they match the survey export. GK zone 3 does not establish its height system. ELLIPSOIDAL explicitly means heights in the horizontal datum. A missing height system cannot be treated as NHN, ellipsoidal height or zero.

The response provides pointsEnuMetres, pointsGeodetic, frameId, the selected operation and verified grid identities. Operation metadata includes available accuracy information and limitations; composed operations retain separate component accuracies. These are not flight accuracy or a survey acceptance test. No surface snapping or arbitrary vertical offset is applied. Apply the viewer's authored-axis rotation and centering exactly once to the returned local ENU values.

The offline engine supports German UTM/GK with qualified grids, Austrian MGI projections with supported Austrian height systems, and Swiss LV03/LV95 with LN02/LHN95. The source and target must be covered by a qualified operation. DHHN92 is not silently treated as DHHN2016. Unsupported combinations, unknown model datum/height, missing grids and coordinates outside the model site return an explicit error instead of a lower-quality substitution.

Revisions and errors

The routes require the caller's normal model-bundle read permission. Public-share links do not grant access to these authenticated report/conversion routes. Unrelated or unreadable bundle IDs are not disclosed.

  • 409 with reasonCode: stale_frame: reload the model and report before retrying.
  • 422: inspect reasonCode, for example model_datum_unknown, model_height_unknown, unsupported_crs, operation_unavailable, outside_model_site, or a report/frame revision mismatch.
  • 503: the coordinate worker is unavailable or timed out. Preserve the survey's saved placement; do not invent a local conversion.

Survey declarations continue to use the document georeference endpoints and their revision checks. verticalCrsCode: null means unknown; verticalCrsCode: "ELLIPSOIDAL" is an explicit declaration. Updating a survey's declaration creates an overlay revision and leaves the model frame unchanged.

Change the model reference after processing

Read GET /v1/spatial/bundles/{modelBundleId}/georeferencing. The response keeps the original frame and quality report and separately returns referenceDeclaration (null initially) and canEditReference.

An authorized human with LocationBundles Write access can send PUT /v1/spatial/bundles/{modelBundleId}/georeferencing/reference:

{
  "frameId": "<64-character frameId from the current response>",
  "reportId": "<64-character reportId from quality>",
  "baseRevision": 0,
  "frame": "ETRS89",
  "source": "Operator confirmed SAPOS / ETRS89 in the flight settings"
}

Use ETRS89 or WGS84 only with evidence from the flight/correction service. source is required for a declaration and limited to 400 characters. Use frame: "original" to restore the original pipeline reference. Saving always advances the reference revision, including when restoring the original setting. The response records the authenticated human's user ID and UTC update time. Send the latest revision as baseRevision; stale saves return 409 and must be reviewed after reloading, never silently retried.

This interprets the existing placement. It does not move or rebuild the mesh, rerun alignment, convert non-RTK images into RTK images, change reported camera residuals, or certify absolute accuracy. The original frame and report remain unchanged. Local-only models and models without confirmed ellipsoidal height cannot be georeferenced by changing this label.

The model reference is distinct from the rover drawing's projection and height datum. Keep choosing those separately, for example GK zone 3 and DHHN2016. Never infer the flight reference from the rover or a visual fit. WGS84 ensemble operations carry explicit accuracy limitations and no centimetre guarantee.

For every coordinate conversion request, include referenceRevision from the latest referenceDeclaration.revision, or zero when no declaration exists. Keep this revision constant across all batches, and verify the worker response echoes it. A reference change returns 409 for stale requests. Discard stale overlay geometry and recalculate it; preserve the original survey coordinates. Existing clients that omit the revision work only while it remains zero.

Measurement coordinates and CAD export

POST /v1/spatial/bundles/{modelBundleId}/georeferencing/export converts model-local ENU metre points using the authorized immutable frame and current reference declaration. Supply frameId, referenceRevision, and points (1–20,000 finite triples). An optional target has horizontalCrs, verticalCrs, and unit: "m", with the same supported survey systems as the import endpoint. The worker reverses the exact qualified import operation, including regional and height grids, and verifies its numerical round trip. Without a target, it supplies native UTM/ellipsoidal output for annotation persistence. This internal default is not a survey/CAD recommendation.

The response includes pointsProjectedMetres, pointsWgs84 (longitude, latitude, ellipsoidal height), projectedEpsg, heightReference, sourceReference, frame and reference revision, operation provenance and accuracy limitations. WGS84 ensemble conversion does not certify centimetre accuracy or imply an epoch correction. Optional legacyGeographicPoints validates an old unbound annotation against the model-space snapshot before rebinding (null entries for new/already-bound points). Wrong frame/reference revisions return 409; unsupported/unknown references or unavailable qualified operations return 422; an unavailable worker returns 503. Requests are limited to 3 MiB and worker responses to 16 MiB.

Measurements keep their authoritative, checksummed model-space points and frame ID in the annotation body. The existing WGS84 annotation coordinate schema is retained as a derived representation, with the reference revision and operation accuracy recorded in frame.modelReference. Unknown references use explicit local storage. Changing a model reference refreshes loaded measurement coordinates with normal annotation revision checks; it never moves points or changes quantities, assignments, deduction links, or the original flight report. Other API consumers must inspect the stored reference revision before treating a geographic representation as current.

PixAtlas generates geographic DXF on download, using current saved geometry and reference evidence. The user confirms the output horizontal and height systems; a current survey-document declaration or complete site default is a suggestion, not a datum inference from longitude. Geographic exports are no longer regenerated by measurement autosave. CAD-safe DXF contains metre units, native east/north/height, a visible CRS/height label and machine-readable comments; no GEODATA block is invented.

On this page