60 static bool readSHPInfo(
const std::string& filename,
int& shapeType,
61 int& numberOfEntities);
65 const std::string& listName, std::string
const& gmsh_path);
73 void readPoints (
const SHPHandle &hSHP,
int numberOfElements, std::string listName);
76 void readStations (
const SHPHandle &hSHP,
int numberOfElements, std::string listName);
79 void readPolylines (
const SHPHandle &hSHP,
int numberOfElements, std::string listName);
82 void readPolygons(
const SHPHandle& hSHP,
int numberOfElements,
83 const std::string& listName,
84 std::string
const& gmsh_path);
88 std::size_t
const shp_record);
Manages the import of ESRI shape files into GeoLib.
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.