Skip to content

Commit

Permalink
Accepting multigeometry layers
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelPau committed Jan 29, 2024
1 parent 9d65e9e commit 77aa161
Show file tree
Hide file tree
Showing 7 changed files with 267 additions and 249 deletions.
26 changes: 11 additions & 15 deletions ogr/ogrsf_frmts/miramon/mm_gdal_driver_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
#include "mm_gdal_structures.h"
CPL_C_START // Necessary for compiling in GDAL project
#else
#include <stdio.h> // For FILE
#include "mm_gdal\mm_gdal_constants.h"
#include "mm_gdal\mm_gdal_structures.h"
// Falta això o es queixa a diversos llocs
#include "str_snyd.h" // Per a struct SNY_TRANSFORMADOR_GEODESIA
#endif

// For MetaData
Expand Down Expand Up @@ -60,7 +59,7 @@ CPL_C_START // Necessary for compiling in GDAL project


// Types of layers in MiraMon
#define MM_LayerType_Unknown 0 // Unknown type or only table
#define MM_LayerType_Unknown 0 // Unknown type or only DBF
#define MM_LayerType_Point 1 // Layer of Points
#define MM_LayerType_Point3d 2 // Layer of 3D Points
#define MM_LayerType_Arc 3 // Layer of Arcs
Expand Down Expand Up @@ -520,10 +519,6 @@ struct MiraMonArcLayer
struct MM_TH TopNodeHeader;
struct MiraMonNodeLayer MMNode;

// An Arc layer can store some ellipsoidal information
double *pEllipLong;
struct SNY_TRANSFORMADOR_GEODESIA *GeodesiaTransform;

// Private data
unsigned __int64 nMaxArcVrt; // Number of allocated
struct ARC_VRT_STRUCTURE *pArcVrt;
Expand Down Expand Up @@ -614,6 +609,15 @@ struct MiraMonFeature
struct MiraMonRecord *pRecords;
};

// There is the possibility of creating a map with all layers
// to visualize it with only one click
struct MiraMonVectMapInfo
{
char pszMapName[MM_CPL_PATH_BUF_SIZE];
FILE_TYPE *fMMMap;
int nNumberOfLayers;
};

// MIRAMON OBJECT: Contains everything
struct MiraMonVectLayerInfo
{
Expand Down Expand Up @@ -738,14 +742,6 @@ struct MiraMonVectLayerInfo
struct MiraMonVectMapInfo *MMMap; // Don't free
};

// There is the possibility of creating a map with all layers
// to visualize it with only one click
struct MiraMonVectMapInfo
{
char pszMapName[MM_CPL_PATH_BUF_SIZE];
FILE *fMMMap;
int nNumberOfLayers;
};

enum DataType {MMDTByte, MMDTInteger, MMDTuInteger,
MMDTLong, MMDTReal, MMDTDouble, MMDT4bits};
Expand Down
Loading

0 comments on commit 77aa161

Please sign in to comment.