spatial_add_layer
Adds a new spatial layer to the Atlas by uploading a file, creating its fields, and waiting for processing to complete.
Instructions
Whole wiki procedure in one go: inspect, upload, create layer, wait for LayerCreation, create field, wait for FieldCreation, reload intersect config [changes spatial-service]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | ||
| indb | No | Include in the biocache (SOLR) index | |
| name | Yes | Internal name: lowercase a-z, 0-9, _ (max 150, cannot be changed later) | |
| path | Yes | ||
| type | No | Default: what the upload is (shapefile: Contextual, grid: Environmental) | |
| notes | No | ||
| sdesc | No | Contextual: DBF column describing each object | |
| sname | No | Contextual: DBF column naming each object (see inspect_layer_zip suggestedSname) | |
| 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 | ||
| fieldName | No | Field name (default: the layer display name) | |
| intersect | No | Include in tabulations | |
| namesearch | No | Objects searchable in the gazetteer | |
| description | No | ||
| displayname | No | Name shown in the portal | |
| source_link | No | ||
| defaultlayer | 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 | |
| layerWaitMinutes | No | How long to wait for LayerCreation before handing back | |
| environmentalvalueunits | No | Environmental layers only, e.g. degrees C |