This is an automated email from the ASF dual-hosted git repository. bchapuis pushed a commit to branch 619-transformation-workflow in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
commit 37358dcdd98f740dafb16b1ccaf7d74bb14073bb Author: Bertil Chapuis <[email protected]> AuthorDate: Fri Apr 7 23:47:32 2023 +0200 Rename example directory --- examples/simplification/workflow.json | 81 ----------------------------------- examples/transformation/workflow.json | 48 +++++++++++++++++++++ 2 files changed, 48 insertions(+), 81 deletions(-) diff --git a/examples/simplification/workflow.json b/examples/simplification/workflow.json deleted file mode 100644 index d1028ce9..00000000 --- a/examples/simplification/workflow.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "steps": [ - { - "id": "download", - "needs": [], - "tasks": [ - { - "type": "DownloadUrl", - "url": "https://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf", - "path": "liechtenstein-latest.osm.pbf" - } - ] - }, - { - "id": "import", - "needs": [ - "download" - ], - "tasks": [ - { - "type": "CreateEntityCollection", - "file": "liechtenstein-latest.osm.pbf", - "collection": "collection", - "srid": 3857 - } - ] - }, - { - "id": "transform", - "needs": [ - "import" - ], - "tasks": [ - { - "type": "TransformEntityCollection", - "collection": "collection", - "database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps", - "recipe": { - "name": "building", - "filter": ["has", "building"], - "groupBy": [], - "operation": "union" - } - }, - { - "type": "TransformEntityCollection", - "collection": "collection", - "database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps", - "recipe": { - "name": "landuse", - "filter": ["has", "landuse"], - "groupBy": ["landuse"], - "operation": "union" - } - }, - { - "type": "TransformEntityCollection", - "collection": "collection", - "database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps", - "recipe": { - "name": "natural", - "filter": ["has", "natural"], - "groupBy": ["natural"], - "operation": "union" - } - }, - { - "type": "TransformEntityCollection", - "collection": "collection", - "database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps", - "recipe": { - "name": "highway", - "filter": ["has", "highway"], - "groupBy": ["highway"], - "operation": "merge" - } - } - ] - } - ] -} diff --git a/examples/transformation/workflow.json b/examples/transformation/workflow.json new file mode 100644 index 00000000..77d41579 --- /dev/null +++ b/examples/transformation/workflow.json @@ -0,0 +1,48 @@ +{ + "steps": [ + { + "id": "download", + "needs": [], + "tasks": [ + { + "type": "DownloadUrl", + "url": "https://download.geofabrik.de/europe/switzerland-latest.osm.pbf", + "path": "data.osm.pbf" + } + ] + }, + { + "id": "import", + "needs": [ + "download" + ], + "tasks": [ + { + "type": "CreateEntityCollection", + "file": "data.osm.pbf", + "collection": "collection", + "srid": 3857 + } + ] + }, + { + "id": "transform", + "needs": [ + "import" + ], + "tasks": [ + { + "type": "TransformEntityCollection", + "collection": "collection", + "database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps", + "recipe": { + "name": "landuse", + "filter": ["has", "landuse"], + "groupBy": ["landuse"], + "operation": "union" + } + } + ] + } + ] +}
