50 static bool readSHPInfo(
const std::string& filename,
int& shapeType,
51 int& numberOfEntities);
55 const std::string& listName, std::string
const& gmsh_path);
63 void readPoints (
const SHPHandle &hSHP,
int numberOfElements, std::string listName);
66 void readStations (
const SHPHandle &hSHP,
int numberOfElements, std::string listName);
69 void readPolylines (
const SHPHandle &hSHP,
int numberOfElements, std::string listName);
72 void readPolygons(
const SHPHandle& hSHP,
int numberOfElements,
73 const std::string& listName,
74 std::string
const& gmsh_path);
78 std::size_t
const shp_record);
SHPInterface(GeoLib::GEOObjects &geoObjects)
Constructor.
void readPolylines(const SHPHandle &hSHP, int numberOfElements, std::string listName)
Reads lines into a vector of Polyline objects.
static bool readSHPInfo(const std::string &filename, int &shapeType, int &numberOfEntities)
Reads the header of the shape file.
void readPoints(const SHPHandle &hSHP, int numberOfElements, std::string listName)
Reads points into a vector of Point objects.
OGSType
Connection between ESRI type system for shape files and OGS GeoLib.
void readStations(const SHPHandle &hSHP, int numberOfElements, std::string listName)
Reads points into a vector of Point objects and marks them as Station.
void readSHPFile(const std::string &filename, OGSType choice, const std::string &listName, std::string const &gmsh_path)
Reads data from the shape file.
GeoLib::GEOObjects & _geoObjects
static bool write2dMeshToSHP(const std::string &file_name, const MeshLib::Mesh &mesh)
static SHPObject * createShapeObject(MeshLib::Element const &e, std::size_t const shp_record)
Creates a shape object polygon out of a 2D mesh element.
void readPolygons(const SHPHandle &hSHP, int numberOfElements, const std::string &listName, std::string const &gmsh_path)
Reads lines into a vector of Polyline and Surface objects.
Container class for geometric objects.
Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices ...