@data-fair/processing-gpkg
v0.2.0
Published
Create datasets from a geopackage (gpkg) file
Keywords
Readme
@data-fair/processing-gpkg
A plugin that allows the creation and management of datasets from geopackage files or zip files that contain them.
Features
- List layers — Lists the layers and corresponding information in your file
- Dataset management — Create or update a REST or file dataset from the desired layers, configurable from the processing parameters.
- Graceful stop — honours the stop signal from the platform and exits cleanly mid-run; optionally, the stop can be ignored to test forced termination after timeout.
Configuration
The plugin configurations change depending on the datasetMode to be applied. There are three of them:
listto list the different layerscreateto create a new datasetupdateto target an existing one
Overall, only the URL in the settings tab remains common, representing a stable URL from which the data file is downloaded (this is the only possible option, there is no repository).
list
For this mode, you only need to enter the URL.
create
| Tab | Field | Description |
| --- | ----- | ----------- |
| Datasets | editableCreate | By default, file-based datasets are created ; by checking this box, editable datasets can be created |
| Datasets | prefix | This corresponds to the title of the datasets to be created. The datasets are named according to this prefix and the name of the corresponding layer |
| Parameters | addAllLayers | Allows you to build datasets directly for all layers of the file |
| Parameters | listIdsLayers | Identifier of the layers to extract to create datasets |
update
| Tab | Field | Description |
| --- | ----- | ----------- |
| Datasets | editableUpdate | By default, file-based datasets are updated; checking this box allows you to update editable datasets. However, be careful to select datasets that correspond to the correct mode |
| Datasets | datasets | List of datasets to be updated, taking into account the layer number and the schema update forcing |
| Datasets - Datasets to update | dataset | Name of the dataset to update, selectable from the list of available datasets |
| Datasets - Datasets to update | idLayer | Layer number used to update the corresponding dataset |
| Datasets - Datasets to update | forceUpdate | Indicates whether the scheme update should also be forced |
