spatial_create_layer
Create a spatial layer from an uploaded file by setting metadata, classification, and portal visibility. Preview changes and confirm to finalize the layer.
Instructions
Create a layer from an upload (wiki step 3); starts LayerCreation [changes spatial-service]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Internal name: lowercase a-z, 0-9, _ (max 150, cannot be changed later) | |
| type | No | Default: what the upload is (shapefile: Contextual, grid: Environmental) | |
| notes | No | ||
| domain | No | "Terrestrial", "Marine" or "Terrestrial,Marine" | |
| dryRun | No | Preview only (default). Set false, together with confirm:true, to really do it | |
| source | No | e.g. organisation name | |
| confirm | No | Must be true (and dryRun false) to really do it | |
| keywords | No | ||
| uploadId | Yes | ||
| description | No | ||
| displayname | No | Name shown in the portal | |
| source_link | No | ||
| licence_link | No | ||
| metadatapath | No | ||
| licence_level | No | ||
| licence_notes | No | ||
| classification1 | No | First level of the layer tree in the portal, e.g. Area Management | |
| classification2 | No | Second level, e.g. Biodiversity | |
| environmentalvalueunits | No | Environmental layers only, e.g. degrees C |