Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sahrkm committed Oct 24, 2023
1 parent d52c00d commit 669ea3e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 22 additions & 1 deletion src/lib/dglib/include/dglib/DgDataField.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DgDataFieldInt : public DgDataField<int> {

public:

DgDataFieldInt (string _name, int _value = 0.0)
DgDataFieldInt (string _name, int _value = 0)
: DgDataField<int> (_name, FIELD_INT, _value)
{ }

Expand All @@ -103,6 +103,27 @@ class DgDataFieldInt : public DgDataField<int> {
}
};

////////////////////////////////////////////////////////////////////////////////
/*
class DgDataFieldLong : public DgDataField<long int> {
public:
DgDataFieldLong (string _name, long int _value = 0)
: DgDataField<long int> (_name, FIELD_INT64, _value)
{ }
virtual int toDouble (double& val) const {
val = value_;
return 0;
}
virtual string valString (void) const {
return dgg::util::to_string(value_);
}
};
*/

////////////////////////////////////////////////////////////////////////////////
class DgDataFieldInt64 : public DgDataField<int64_t> {

Expand Down
4 changes: 2 additions & 2 deletions src/lib/dglib/lib/DgInGdalFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
// USE_GDAL is set in MakeIncludes
#ifdef USE_GDAL

#include <ogrsf_frmts.h>

#include <dglib/DgInGdalFile.h>
#include <dglib/DgLocation.h>
#include <dglib/DgLocList.h>
Expand All @@ -40,8 +42,6 @@
#include <dglib/DgDataList.h>
#include <dglib/DgDataField.h>

#include <ogrsf_frmts.h>

#include <sstream>

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 669ea3e

Please sign in to comment.