MDAL
|
#include <mdal_esri_tin.hpp>
Public Member Functions | |
Driver * | create () override |
virtual std::unique_ptr< Mesh > | load (const std::string &uri, const std::string &meshName="") override |
bool | canReadMesh (const std::string &uri) override |
![]() | |
Driver (const std::string &name, const std::string &longName, const std::string &filters, int capabilityFlags) | |
std::string | name () const |
std::string | longName () const |
std::string | filters () const |
bool | hasCapability (Capability capability) const |
bool | hasWriteDatasetCapability (MDAL_DataLocation location) const |
virtual std::string | writeDatasetOnFileSuffix () const |
virtual std::string | saveMeshOnFileSuffix () const |
virtual bool | canReadDatasets (const std::string &uri) |
virtual int | faceVerticesMaximumCount () const |
returns the maximum vertices per face | |
virtual std::string | buildUri (const std::string &meshFile) |
virtual void | load (const std::string &uri, Mesh *mesh) |
virtual void | save (const std::string &fileName, const std::string &meshName, Mesh *mesh) |
virtual void | createDatasetGroup (Mesh *mesh, const std::string &groupName, MDAL_DataLocation dataLocation, bool hasScalarData, const std::string &datasetGroupFile) |
virtual void | createDataset (DatasetGroup *group, RelativeTimestamp time, const double *values, const int *active) |
virtual void | createDataset (DatasetGroup *group, RelativeTimestamp time, const double *values, const int *verticalLevelCount, const double *verticalExtrusion) |
virtual bool | persist (DatasetGroup *group) |
Structure of files https://en.wikipedia.org/wiki/Esri_TIN
thul.adf
file containing only int (big-endianness) first, list of superpoint indexes (infinity point to North, South East and West) used by ArcGIS but unused here This list finished with value -1 Then indexes of the outer boundary indexes or inner boundary indexes (holes) Those list are separated with value 0
tnxy.adf
vertices position X,Y : for each value 8 bytes : double with big-endianness
tnz.adf : z value of each vertices
vertices Z value: for each value 4 bytes : float with big endianness
tnod.adf : faces (triangles) of the TIN
indexes of the 3 vertices for each faces (int32 big-endianness)
tmsk.adf and tmsx.adf
files used to store information about masked faces. Those faces are not displayed
prj.adf
text file containing the WKT CRS