From eb37edc596935d9281dcf72befd2f3ca40cfbc6e Mon Sep 17 00:00:00 2001 From: rinkk <karsten.rink@ufz.de> Date: Thu, 5 Dec 2019 18:39:27 +0100 Subject: [PATCH] added Mesh2Shape documentation --- .../fileio/Mesh2Shape/Mesh2Shape-input.png | 3 ++ .../fileio/Mesh2Shape/Mesh2Shape-output1.png | 3 ++ .../fileio/Mesh2Shape/Mesh2Shape-output2.png | 3 ++ .../docs/tools/fileio/Mesh2Shape/index.pandoc | 54 +++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-input.png create mode 100644 web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output1.png create mode 100644 web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output2.png create mode 100644 web/content/docs/tools/fileio/Mesh2Shape/index.pandoc diff --git a/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-input.png b/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-input.png new file mode 100644 index 00000000000..62b614b0f4b --- /dev/null +++ b/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-input.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcdc05d85eb1ed9cb0365378f77cd8157a682399d1c13a92138cb9a46b9b60b1 +size 249287 diff --git a/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output1.png b/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output1.png new file mode 100644 index 00000000000..529ad4d6fa5 --- /dev/null +++ b/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f00c016a36fa28f4526b8daf6787d30687eef85c5fcde4b61d36cb7f27d2c8c6 +size 444246 diff --git a/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output2.png b/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output2.png new file mode 100644 index 00000000000..6bb00993118 --- /dev/null +++ b/web/content/docs/tools/fileio/Mesh2Shape/Mesh2Shape-output2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:128e1a6d09e489fd2917212e743e6ea78992164c5ca5a37246168f06862dde5f +size 2169087 diff --git a/web/content/docs/tools/fileio/Mesh2Shape/index.pandoc b/web/content/docs/tools/fileio/Mesh2Shape/index.pandoc new file mode 100644 index 00000000000..b47174f568e --- /dev/null +++ b/web/content/docs/tools/fileio/Mesh2Shape/index.pandoc @@ -0,0 +1,54 @@ ++++ +date = "2019-12-03T00:00:00+01:00" +title = "Mesh2Shape" +author = "Karsten Rink" + +[menu] + [menu.tools] + parent = "Data Import/Export" ++++ + +## Introduction + +Converts a 2D surface mesh into a shapfile such that each element is represented by a polygon. Cell attributes are transferred onto shape polygons while point attributes are ignored. + +The tool is part of the official [OpenGeoSys git repository](https://github.com/ufz/ogs). + +## Usage + +```bash + Mesh2Shape.exe -i <input_file.vtu> -o <output_file.shp> + + +Where: + + -i <input_file.vtu>, --input-file <input_file.vtu> + (required) OGS mesh file (*.vtu, *.msh) + + -o <output_file.shp>, --output-file <output_file.shp> + (required) Esri Shapefile (*.shp) +``` + +## Simple example + +**Input data:** + +{ width=66% } +2D surface mesh mit scalar data assigned to cells, here displayed via the OGS Data Explorer. In this particular case, the simulation result of groundwater flow simulation (originally assigned to mesh nodes) has been converted onto cells via VTK's PointToCell-Filter. + +**Command:** +``` +Mesh2Raster -i Mueglitz2D_Point2Cell.vtu -o Mueglitz2D_Point2Cell.shp +``` + +{ width=66% } +Exported shapefile displayed in a geographic information system (here, QGIS). + + + +The result of an OGS-simulation showing the groundwater head of the Müglitz-catchment imported into QGIS and combined with other data from an existing GIS-project of this region. + + +## Application + +The utility allows to export meshes, and in particular simulation results, into existing GIS-projects and use the data as input for subsequent workflows. -- GitLab