- Copyright
- Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org) Distributed under a Modified BSD License. See accompanying file LICENSE.txt or http://www.opengeosys.org/project/license
Definition in file Mesh2Shape.cpp.
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 17 of file Mesh2Shape.cpp.
20 "Converts 2D mesh file into shapfile such that each element is "
21 "represented by a polygon. Cell attributes are transferred onto shape "
22 "polygons while point attributes are ignored.\n\n"
23 "OpenGeoSys-6 software, version " +
26 "Copyright (c) 2012-2021, OpenGeoSys Community "
27 "(http://www.opengeosys.org)",
30 TCLAP::ValueArg<std::string> output_arg(
"o",
"output-file",
31 "Esri Shapefile (*.shp)",
true,
"",
35 TCLAP::ValueArg<std::string> input_arg(
"i",
"input-file",
36 "OGS mesh file (*.vtu, *.msh)",
true,
37 "",
"input_file.vtu");
40 cmd.parse(argc, argv);
42 std::string
const file_name(input_arg.getValue());
43 std::unique_ptr<MeshLib::Mesh>
const mesh(
static bool write2dMeshToSHP(const std::string &file_name, const MeshLib::Mesh &mesh)
GITINFOLIB_EXPORT const std::string ogs_version
MeshLib::Mesh * readMeshFromFile(const std::string &file_name)
References GitInfoLib::GitInfo::ogs_version, MeshLib::IO::readMeshFromFile(), and FileIO::SHPInterface::write2dMeshToSHP().