Mesh2Shape

Introduction

Converts a 2D surface mesh into a Shapefile such that each element is represented by a polygon. Cell attributes are transferred onto shape polygons while point attributes are ignored.

Usage

   Mesh2Shape  -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:

Input
2D surface mesh with 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:

Mesh2Shape -i Mueglitz2D_Point2Cell.vtu -o Mueglitz2D_Point2Cell.shp

Exported shapefile
Exported shapefile displayed in a geographic information system (here, QGIS).

OGS simulation result
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.


This article was written by Karsten Rink. If you are missing something or you find an error please let us know.
Generated with Hugo 0.122.0 in CI job 425680 | Last revision: March 20, 2023
Commit: [PL/THM] Add I/F for internal state variables I/O 24b0455  | Edit this page on