You can run the examples from here.
Before running the examples:
- install Apache Hop Installation
- set the variable
HOP_HOME
to the installation folder - deploy plugins: see "Installing/upgrading the module" of main README.md
- register project config:
(cd examples && ${HOP_HOME}/hop-conf.sh --project-create --project hop-gis-plugins-examples --project-home=$(pwd))
Run an example:
cd examples
PIPELINE_TO_RUN="<hpl file in pipelines-and-workflows>"
${HOP_HOME}/hop-run.sh \
--file=pipelines-and-workflows/${PIPELINE_TO_RUN} \
--project=hop-gis-plugins-examples \
--runconfig=local \
--level=Basic
Beforehand, please build the image from the root of the project:
docker/hop-gis/build.sh
Next, you can run an example within a temporary container:
cd examples
PIPELINE_TO_RUN="<hpl file in pipelines-and-workflows>"
docker run -it --rm --name hop-gis-plugins-examples \
--network="host" \
-u $(id -u):$(id -g) \
-v "$(pwd)":/app/ \
-e HOP_LOG_LEVEL=Basic \
-e HOP_FILE_PATH='${PROJECT_HOME}/pipelines-and-workflows/'${PIPELINE_TO_RUN} \
-e HOP_PROJECT_DIRECTORY=/app/ \
-e HOP_PROJECT_NAME=hop-gis-plugins-examples \
-e HOP_ENVIRONMENT_NAME=hop-gis-plugins-examples \
-e HOP_ENVIRONMENT_CONFIG_FILE_NAME_PATHS=/app/config/config.json \
-e HOP_RUN_CONFIG=local \
\
atolcd/hop-gis:latest
Pipeline | pipelines-and-workflows/shp2geojson.hpl |
---|---|
Description | Convert a file from Shapefile format to GeoJSON format |
Run example | PIPELINE_TO_RUN="shp2geojson.hpl" |
Input | datasets/velo_tour_2013/velo_tour_2013.* |
Output | output/velo_tour_2013.geojson |
Pipeline | pipelines-and-workflows/A000-MI-metadata-injection-test.hpl |
---|---|
Description | Convert a file from Shapefile format to GeoJSON format |
Run example | PIPELINE_TO_RUN="A000-MI-metadata-injection-test.hpl" |
Input | datasets/metadata_injection/test.shp |
Output | see logs |
Atol Conseils et Développements Follow us on twitter @atolcd