@@ -84,7 +84,8 @@ class XGpkgVector {
8484public:
8585 XGpkgVector () { m_Map = NULL ; m_Id = 0 ; }
8686 virtual inline XGeoClass* GeoClass () const { return NULL ;}
87- virtual void SetGeom (int /* nb*/ , XPt* /* P*/ , double * /* Z*/ , int /* nbparts*/ , int * /* parts*/ ) { ; }
87+ virtual void SetGeom (int /* nb*/ , XPt* /* P*/ , double * /* Z*/ , int /* nbparts*/ , int * /* parts*/ ,
88+ double /* zmin*/ , double /* zmax*/ ) { ; }
8889};
8990
9091// -----------------------------------------------------------------------------
@@ -129,7 +130,7 @@ class XGpkgMPoint2D : public XGeoMPoint2D, public XGpkgVector {
129130 { if (m_Map!=NULL ) return m_Map->LoadGeom (m_Id, this ); return false ;}
130131
131132 virtual inline XGeoClass* GeoClass () const { return Class ();}
132- virtual void SetGeom (int nb, XPt* P, double * , int , int * )
133+ virtual void SetGeom (int nb, XPt* P, double * , int , int *, double , double )
133134 { m_nNumPoints = nb; m_Pt = P;}
134135};
135136
@@ -138,9 +139,8 @@ class XGpkgMPoint2D : public XGeoMPoint2D, public XGpkgVector {
138139// -----------------------------------------------------------------------------
139140class XGpkgMPoint3D : public XGeoMPoint3D , public XGpkgVector {
140141public:
141- XGpkgMPoint3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, double zmin, double zmax, uint32_t nbpt = 0 )
142- { m_Map = map; m_Id = id; m_Frame = F; m_ZRange = new double [2 ]; m_ZRange[0 ] = zmin; m_ZRange[1 ] = zmax;
143- m_nNumPoints = nbpt; m_Pt = NULL ; m_Z = NULL ;}
142+ XGpkgMPoint3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, uint32_t nbpt = 0 )
143+ { m_Map = map; m_Id = id; m_Frame = F; m_nNumPoints = nbpt; m_Pt = NULL ; m_Z = NULL ;}
144144
145145 virtual inline XGeoMap* Map () const { return m_Map;}
146146 virtual bool ReadAttributes (std::vector<std::string>& V)
@@ -151,8 +151,8 @@ class XGpkgMPoint3D : public XGeoMPoint3D, public XGpkgVector {
151151 { if (m_Map!=NULL ) return m_Map->LoadGeom2D (m_Id, this ); return false ;}
152152
153153 virtual inline XGeoClass* GeoClass () const { return Class ();}
154- virtual void SetGeom (int nb, XPt* P, double * Z, int , int * )
155- { m_nNumPoints = nb; m_Pt = P; m_Z = Z;}
154+ virtual void SetGeom (int nb, XPt* P, double * Z, int , int *, double zmin, double zmax )
155+ { m_nNumPoints = nb; m_Pt = P; m_Z = Z; m_ZRange = new double [ 2 ]; m_ZRange[ 0 ] = zmin; m_ZRange[ 1 ] = zmax; }
156156};
157157
158158// -----------------------------------------------------------------------------
@@ -170,7 +170,7 @@ class XGpkgLine2D : public XGeoLine2D, public XGpkgVector {
170170 { if (m_Map!=NULL ) return m_Map->LoadGeom (m_Id, this ); return false ;}
171171
172172 virtual inline XGeoClass* GeoClass () const { return Class ();}
173- virtual void SetGeom (int nb, XPt* P, double * , int , int * )
173+ virtual void SetGeom (int nb, XPt* P, double * , int , int *, double , double )
174174 { m_nNumPoints = nb; m_Pt = P;}
175175};
176176
@@ -179,9 +179,8 @@ class XGpkgLine2D : public XGeoLine2D, public XGpkgVector {
179179// -----------------------------------------------------------------------------
180180class XGpkgLine3D : public XGeoLine3D , public XGpkgVector {
181181public:
182- XGpkgLine3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, double zmin, double zmax, uint32_t nbpt = 0 )
183- { m_Map = map; m_Id = id; m_Frame = F; m_ZRange = new double [2 ]; m_ZRange[0 ] = zmin; m_ZRange[1 ] = zmax;
184- m_nNumPoints = nbpt; m_Pt = NULL ; m_Z = NULL ;}
182+ XGpkgLine3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, uint32_t nbpt = 0 )
183+ { m_Map = map; m_Id = id; m_Frame = F; m_nNumPoints = nbpt; m_Pt = NULL ; m_Z = NULL ;}
185184
186185 virtual inline XGeoMap* Map () const { return m_Map;}
187186 virtual bool ReadAttributes (std::vector<std::string>& V)
@@ -192,8 +191,8 @@ class XGpkgLine3D : public XGeoLine3D, public XGpkgVector {
192191 { if (m_Map!=NULL ) return m_Map->LoadGeom2D (m_Id, this ); return false ;}
193192
194193 virtual inline XGeoClass* GeoClass () const { return Class ();}
195- virtual void SetGeom (int nb, XPt* P, double * Z, int , int * )
196- { m_nNumPoints = nb; m_Pt = P; m_Z = Z ;}
194+ virtual void SetGeom (int nb, XPt* P, double * Z, int , int *, double zmin, double zmax )
195+ { m_nNumPoints = nb; m_Pt = P; m_Z = Z; m_ZRange = new double [ 2 ]; m_ZRange[ 0 ] = zmin; m_ZRange[ 1 ] = zmax ;}
197196};
198197
199198// -----------------------------------------------------------------------------
@@ -211,7 +210,7 @@ class XGpkgMLine2D : public XGeoMLine2D, public XGpkgVector {
211210 { if (m_Map!=NULL ) return m_Map->LoadGeom (m_Id, this ); return false ;}
212211
213212 virtual inline XGeoClass* GeoClass () const { return Class ();}
214- virtual void SetGeom (int nb, XPt* P, double * /* Z*/ , int nbparts, int * parts)
213+ virtual void SetGeom (int nb, XPt* P, double * /* Z*/ , int nbparts, int * parts, double , double )
215214 { m_nNumPoints = nb; m_Pt = P; m_nNumParts = nbparts; m_Parts = parts;}
216215};
217216
@@ -220,9 +219,8 @@ class XGpkgMLine2D : public XGeoMLine2D, public XGpkgVector {
220219// -----------------------------------------------------------------------------
221220class XGpkgMLine3D : public XGeoMLine3D , public XGpkgVector {
222221public:
223- XGpkgMLine3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, double zmin, double zmax, uint32_t nbpt = 0 )
224- { m_Map = map; m_Id = id; m_Frame = F; m_ZRange = new double [2 ]; m_ZRange[0 ] = zmin; m_ZRange[1 ] = zmax;
225- m_nNumPoints = nbpt; m_nNumParts = 0 ; m_Pt = NULL ; m_Parts = NULL ; m_Z = NULL ;}
222+ XGpkgMLine3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, uint32_t nbpt = 0 )
223+ { m_Map = map; m_Id = id; m_Frame = F; m_nNumPoints = nbpt; m_nNumParts = 0 ; m_Pt = NULL ; m_Parts = NULL ; m_Z = NULL ;}
226224
227225 virtual inline XGeoMap* Map () const { return m_Map;}
228226 virtual bool ReadAttributes (std::vector<std::string>& V)
@@ -233,8 +231,8 @@ class XGpkgMLine3D : public XGeoMLine3D, public XGpkgVector {
233231 { if (m_Map!=NULL ) return m_Map->LoadGeom2D (m_Id, this ); return false ;}
234232
235233 virtual inline XGeoClass* GeoClass () const { return Class ();}
236- virtual void SetGeom (int nb, XPt* P, double * Z, int nbparts, int * parts)
237- { m_nNumPoints = nb; m_Pt = P; m_Z = Z; m_nNumParts = nbparts; m_Parts = parts;}
234+ virtual void SetGeom (int nb, XPt* P, double * Z, int nbparts, int * parts, double zmin, double zmax )
235+ { m_nNumPoints = nb; m_Pt = P; m_Z = Z; m_nNumParts = nbparts; m_Parts = parts; m_ZRange = new double [ 2 ]; m_ZRange[ 0 ] = zmin; m_ZRange[ 1 ] = zmax ;}
238236};
239237
240238// -----------------------------------------------------------------------------
@@ -252,7 +250,7 @@ class XGpkgPoly2D : public XGeoPoly2D, public XGpkgVector {
252250 { if (m_Map!=NULL ) return m_Map->LoadGeom (m_Id, this ); return false ;}
253251
254252 virtual inline XGeoClass* GeoClass () const { return Class ();}
255- virtual void SetGeom (int nb, XPt* P, double * , int , int * )
253+ virtual void SetGeom (int nb, XPt* P, double * , int , int *, double , double )
256254 { m_nNumPoints = nb; m_Pt = P;}
257255};
258256
@@ -261,9 +259,8 @@ class XGpkgPoly2D : public XGeoPoly2D, public XGpkgVector {
261259// -----------------------------------------------------------------------------
262260class XGpkgPoly3D : public XGeoPoly3D , public XGpkgVector {
263261public:
264- XGpkgPoly3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, double zmin, double zmax, uint32_t nbpt = 0 )
265- { m_Map = map; m_Id = id; m_Frame = F; m_ZRange = new double [2 ]; m_ZRange[0 ] = zmin; m_ZRange[1 ] = zmax;
266- m_nNumPoints = nbpt; m_Pt = NULL ; m_Z = NULL ;}
262+ XGpkgPoly3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, uint32_t nbpt = 0 )
263+ { m_Map = map; m_Id = id; m_Frame = F; m_nNumPoints = nbpt; m_Pt = NULL ; m_Z = NULL ;}
267264
268265 virtual inline XGeoMap* Map () const { return m_Map;}
269266 virtual bool ReadAttributes (std::vector<std::string>& V)
@@ -274,8 +271,8 @@ class XGpkgPoly3D : public XGeoPoly3D, public XGpkgVector {
274271 { if (m_Map!=NULL ) return m_Map->LoadGeom2D (m_Id, this ); return false ;}
275272
276273 virtual inline XGeoClass* GeoClass () const { return Class ();}
277- virtual void SetGeom (int nb, XPt* P, double * Z, int , int * )
278- { m_nNumPoints = nb; m_Pt = P; m_Z = Z;}
274+ virtual void SetGeom (int nb, XPt* P, double * Z, int , int *, double zmin, double zmax )
275+ { m_nNumPoints = nb; m_Pt = P; m_Z = Z; m_ZRange = new double [ 2 ]; m_ZRange[ 0 ] = zmin; m_ZRange[ 1 ] = zmax; }
279276};
280277
281278// -----------------------------------------------------------------------------
@@ -284,8 +281,7 @@ class XGpkgPoly3D : public XGeoPoly3D, public XGpkgVector {
284281class XGpkgMPoly2D : public XGeoMPoly2D , public XGpkgVector {
285282public:
286283 XGpkgMPoly2D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, uint32_t nbpt = 0 )
287- { m_Map = map; m_Id = id; m_Frame = F;
288- m_nNumPoints = nbpt; m_nNumParts = 0 ; m_Pt = NULL ; m_Parts = NULL ;}
284+ { m_Map = map; m_Id = id; m_Frame = F; m_nNumPoints = nbpt; m_nNumParts = 0 ; m_Pt = NULL ; m_Parts = NULL ;}
289285
290286 virtual inline XGeoMap* Map () const { return m_Map;}
291287 virtual bool ReadAttributes (std::vector<std::string>& V)
@@ -294,7 +290,7 @@ class XGpkgMPoly2D : public XGeoMPoly2D, public XGpkgVector {
294290 { if (m_Map!=NULL ) return m_Map->LoadGeom (m_Id, this ); return false ;}
295291
296292 virtual inline XGeoClass* GeoClass () const { return Class ();}
297- virtual void SetGeom (int nb, XPt* P, double * /* Z*/ , int nbparts, int * parts)
293+ virtual void SetGeom (int nb, XPt* P, double * /* Z*/ , int nbparts, int * parts, double , double )
298294 { m_nNumPoints = nb; m_Pt = P; m_nNumParts = nbparts; m_Parts = parts;}
299295};
300296
@@ -303,9 +299,8 @@ class XGpkgMPoly2D : public XGeoMPoly2D, public XGpkgVector {
303299// -----------------------------------------------------------------------------
304300class XGpkgMPoly3D : public XGeoMPoly3D , public XGpkgVector {
305301public:
306- XGpkgMPoly3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, double zmin, double zmax, uint32_t nbpt = 0 )
307- { m_Map = map; m_Id = id; m_Frame = F; m_ZRange = new double [2 ]; m_ZRange[0 ] = zmin; m_ZRange[1 ] = zmax;
308- m_nNumPoints = nbpt; m_nNumParts = 0 ; m_Pt = NULL ; m_Parts = NULL ; m_Z = NULL ;}
302+ XGpkgMPoly3D (XGpkgMap* map, sqlite3_int64 id, XFrame& F, uint32_t nbpt = 0 )
303+ { m_Map = map; m_Id = id; m_Frame = F; m_nNumPoints = nbpt; m_nNumParts = 0 ; m_Pt = NULL ; m_Parts = NULL ; m_Z = NULL ;}
309304
310305 virtual inline XGeoMap* Map () const { return m_Map;}
311306 virtual bool ReadAttributes (std::vector<std::string>& V)
@@ -316,8 +311,8 @@ class XGpkgMPoly3D : public XGeoMPoly3D, public XGpkgVector {
316311 { if (m_Map!=NULL ) return m_Map->LoadGeom2D (m_Id, this ); return false ;}
317312
318313 virtual inline XGeoClass* GeoClass () const { return Class ();}
319- virtual void SetGeom (int nb, XPt* P, double * Z, int nbparts, int * parts)
320- { m_nNumPoints = nb; m_Pt = P; m_Z = Z; m_nNumParts = nbparts; m_Parts = parts;}
314+ virtual void SetGeom (int nb, XPt* P, double * Z, int nbparts, int * parts, double zmin, double zmax )
315+ { m_nNumPoints = nb; m_Pt = P; m_Z = Z; m_nNumParts = nbparts; m_Parts = parts; m_ZRange = new double [ 2 ]; m_ZRange[ 0 ] = zmin; m_ZRange[ 1 ] = zmax ;}
321316};
322317
323318#endif // XGPKGMAP_H
0 commit comments