Skip to content

assign-projection

Assigns a coordinate reference system (CRS) to a LAS/LAZ dataset that carries no valid projection metadata. The step stamps the dataset with the specified EPSG code without transforming any coordinates. After assignment, DATASET_INFO runs on the projected output to capture updated metadata. Fires a webhook on completion.

Recipe name: assign-projectionVersion: 1.0.0Reprojection: No (CRS assignment only — coordinates are not transformed) Output format: LAS/LAZ with assigned CRS + JSON metadata


Steps

StepTypeRuns
assign_projectionASSIGN_PROJECTIONMain
dataset_infoDATASET_INFOAfter assign_projection
call_webhookCALL_WEBHOOKon_exit

Recipe (v1.0.0 snapshot)

json
{
  "name": "assign-projection",
  "version": "1.0.0",
  "definition": {
    "recipe": [
      {
        "id": "assign_projection",
        "type": "ASSIGN_PROJECTION",
        "inputs":  { "input_las": "job:input_las" },
        "outputs": { "output_las": "step:assign_projection.output_las" },
        "param_keys": ["target_epsg"]
      },
      {
        "id": "dataset_info",
        "type": "DATASET_INFO",
        "inputs":  { "input_las": "step:assign_projection.output_las" },
        "outputs": { "metadata": "step:dataset_info.metadata" }
      }
    ],
    "on_exit": {
      "id": "call_webhook",
      "type": "CALL_WEBHOOK",
      "inputs": { "waits_for": "step:dataset_info.metadata" },
      "param_keys": ["webhook_url"]
    }
  }
}

Submitting a job

bash
curl -X POST https://dev.mapprism.com/ordo/jobs \
  -H "Authorization: Bearer <API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "recipe_id": 38,
    "inputs": {
      "job:input_las": {
        "type": "las",
        "uri": "development/survey/dataset.las",
        "hash": "abc123"
      }
    },
    "params": {
      "assign_projection": {
        "target_epsg": "EPSG:2271"
      },
      "call_webhook": {
        "webhook_url": "https://myapp.example.com/hooks/done"
      }
    },
    "outputs": {
      "step:assign_projection.output_las": {
        "path": "development/results/survey/dataset-projected.las"
      },
      "step:dataset_info.metadata": {
        "path": "development/results/survey/metadata.json"
      }
    }
  }'

Required inputs

Artifact keyTypeDescription
job:input_laslasSource LAS/LAZ file without a valid CRS

Required params

StepParamDescription
assign_projectiontarget_epsgCRS to assign (e.g. "EPSG:2271" or "EPSG:26915+EPSG:5703")
call_webhookwebhook_urlURL to POST the job result to

Producible outputs

ArtifactTypeDescription
step:assign_projection.output_laslasLAS/LAZ with the specified CRS stamped into its metadata
step:dataset_info.metadatajsonPDAL metadata report (reflecting the assigned CRS)