Skip to content

Commit 56e3961

Browse files
committed
Roll back datum reporting changes (for master branch) to 1.2.8
1 parent 57e24dd commit 56e3961

File tree

2 files changed

+20
-31
lines changed

2 files changed

+20
-31
lines changed

dynadjust/dynadjust/dnaimportwrapper/dnaimportwrapper.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,23 +1043,12 @@ int ImportDataFiles(dna_import& parserDynaML, vdnaStnPtr* vStations, vdnaMsrPtr*
10431043
isStaticFrame = isEpsgDatumStatic(LongFromString<UINT32>(projectEpsgCode));
10441044

10451045
// Has the user supplied a static reference frame?
1046-
// If so, set the epoch from the user-supplied static frame
1046+
// If so, set the epoch
10471047
if (p.i.user_supplied_frame && isStaticFrame)
10481048
{
10491049
p.i.epoch = referenceepochFromEpsgString<std::string>(projectEpsgCode);
10501050
p.r.epoch = p.i.epoch;
10511051
}
1052-
// Has the user supplied a SINEX file, but no reference frame?
1053-
// If so, set the epoch from the DynAdjust default datum
1054-
else if (!p.i.user_supplied_frame && input_file_meta.filetype == sinex)
1055-
{
1056-
// revert to epoch of the file frame
1057-
p.i.epoch = referenceepochFromEpsgString<std::string>(projectEpsgCode);
1058-
p.r.epoch = p.i.epoch;
1059-
}
1060-
// At this point, one of the following is true:
1061-
// - a dynamic reference frame has been supplied
1062-
// - a frame has not been supplied, in which case the file frame will be taken
10631052
else if (!p.i.user_supplied_epoch)
10641053
{
10651054
if (inputFileEpoch.empty())
@@ -1149,7 +1138,7 @@ int ImportDataFiles(dna_import& parserDynaML, vdnaStnPtr* vStations, vdnaMsrPtr*
11491138
std::stringstream epochSource;
11501139
if (isStaticFrame)
11511140
{
1152-
epochSource << " - Warning: File epoch (" << inputFileEpoch << ") differs from project epoch (" << p.i.epoch << ")." << std::endl;
1141+
epochSource << " - Warning: File epoch (" << inputFileEpoch << ") will be ignored." << std::endl;
11531142
if (!p.g.quiet)
11541143
std::cout << epochSource.str();
11551144
*imp_file << epochSource.str();

dynadjust/include/parameters/dnaconsts-datums.hpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -126,24 +126,24 @@ const char* const WGS84_G1674_c = "7662";
126126
const char* const WGS84_G1762_c = "7664";
127127
const char* const WGS84_G2139_c = "9753";
128128

129-
const char* const AGD66_epoch = "01.01.1966";
130-
const char* const AGD84_epoch = "01.01.1984";
131-
const char* const GDA94_epoch = "01.01.1994";
132-
const char* const GDA2020_epoch = "01.01.2020";
133-
const char* const ITRF2020_epoch = "01.01.2020";
134-
const char* const ITRF2014_epoch = "01.01.2010";
135-
const char* const ITRF2008_epoch = "01.01.2008";
136-
const char* const ITRF2005_epoch = "01.01.2005";
137-
const char* const ITRF2000_epoch = "01.01.2000";
138-
const char* const ITRF1997_epoch = "01.01.1997";
139-
const char* const ITRF1996_epoch = "01.01.1996";
140-
const char* const ITRF1994_epoch = "01.01.1994";
141-
const char* const ITRF1993_epoch = "01.01.1993";
142-
const char* const ITRF1992_epoch = "01.01.1992";
143-
const char* const ITRF1991_epoch = "01.01.1991";
144-
const char* const ITRF1990_epoch = "01.01.1990";
145-
const char* const ITRF1989_epoch = "01.01.1989";
146-
const char* const ITRF1988_epoch = "01.01.1988";
129+
const char* const AGD66_epoch = "1.1.1966";
130+
const char* const AGD84_epoch = "1.1.1984";
131+
const char* const GDA94_epoch = "1.1.1994";
132+
const char* const GDA2020_epoch = "1.1.2020";
133+
const char* const ITRF2020_epoch = "1.1.2020";
134+
const char* const ITRF2014_epoch = "1.1.2010";
135+
const char* const ITRF2008_epoch = "1.1.2008";
136+
const char* const ITRF2005_epoch = "1.1.2005";
137+
const char* const ITRF2000_epoch = "1.1.2000";
138+
const char* const ITRF1997_epoch = "1.1.1997";
139+
const char* const ITRF1996_epoch = "1.1.1996";
140+
const char* const ITRF1994_epoch = "1.1.1994";
141+
const char* const ITRF1993_epoch = "1.1.1993";
142+
const char* const ITRF1992_epoch = "1.1.1992";
143+
const char* const ITRF1991_epoch = "1.1.1991";
144+
const char* const ITRF1990_epoch = "1.1.1990";
145+
const char* const ITRF1989_epoch = "1.1.1989";
146+
const char* const ITRF1988_epoch = "1.1.1988";
147147

148148
// epochs for WGS84 are not the reference epoch, but rather,
149149
// the starting date from which the respective WGS realisation

0 commit comments

Comments
 (0)