Loading isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.cpp +9 −1 Original line number Diff line number Diff line Loading @@ -1812,12 +1812,20 @@ namespace Isis { netInfo.addComment("This group is for informational purposes only"); netInfo += PvlKeyword("NetworkId", protobufHeader.networkid().c_str()); netInfo += PvlKeyword("TargetName", protobufHeader.targetname().c_str()); // Grab TargetRadii if they exist. if (!m_header.targetRadii.empty()) { PvlKeyword pvlRadii("TargetRadii"); for (uint i = 0; i < m_header.targetRadii.size(); i++) { pvlRadii += toString(m_header.targetRadii[i].meters()); } netInfo += pvlRadii; } netInfo += PvlKeyword("UserName", protobufHeader.username().c_str()); netInfo += PvlKeyword("Created", protobufHeader.created().c_str()); netInfo += PvlKeyword("LastModified", protobufHeader.lastmodified().c_str()); netInfo += PvlKeyword("Description", protobufHeader.description().c_str()); netInfo += PvlKeyword("NumberOfPoints", toString(numPoints)); netInfo += PvlKeyword("NumberOfMeasures", toString(numMeasures)); netInfo += PvlKeyword("Version", "5"); protoObj.addGroup(netInfo); Loading isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.truth +10 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ Object = ControlNetwork Created = Null LastModified = Null Description = Null TargetRadii = (3396190.0, 3396190.0, 3376200.0) Version = 5 Object = ControlPoint Loading Loading @@ -76,6 +77,7 @@ Object = ControlNetwork Created = Null LastModified = Null Description = "Test Network" TargetRadii = (2575000.0, 2575000.0, 2575000.0) Version = 5 Object = ControlPoint Loading Loading @@ -132,6 +134,7 @@ Object = ControlNetwork Created = 2010-07-10T12:50:15 LastModified = 2010-07-10T12:50:55 Description = "UnitTest of ControlNetwork" TargetRadii = (3396190.0, 3396190.0, 3376200.0) Version = 5 Object = ControlPoint Loading Loading @@ -329,6 +332,7 @@ Object = ControlNetwork Created = 2012-01-04T12:09:57 LastModified = 2012-01-04T12:09:57 Description = "Themis Day IR Network: Lunae Palus, Lat(0,30) Lon(270-315)" TargetRadii = (3396190.0, 3396190.0, 3376200.0) Version = 5 Object = ControlPoint Loading Loading @@ -559,7 +563,12 @@ After reading and writing to a binary form does Pvl match? Conversion to Pvl stays consistent Reading/Writing control network is consistent Check conversions between the binary format and the pvl format. The conversion methods for pvl->bin and bin->pvl are correct. 8c8,9 < Version = 3 --- > TargetRadii = (3396190.0, 3396190.0, 3376200.0) > Version = 5 The conversion from pvl to binary is incorrect. Reading: $control/testData/unitTest_ControlNetVersioner_PvlNetwork5_PvlV0003.pvl... Loading Loading
isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.cpp +9 −1 Original line number Diff line number Diff line Loading @@ -1812,12 +1812,20 @@ namespace Isis { netInfo.addComment("This group is for informational purposes only"); netInfo += PvlKeyword("NetworkId", protobufHeader.networkid().c_str()); netInfo += PvlKeyword("TargetName", protobufHeader.targetname().c_str()); // Grab TargetRadii if they exist. if (!m_header.targetRadii.empty()) { PvlKeyword pvlRadii("TargetRadii"); for (uint i = 0; i < m_header.targetRadii.size(); i++) { pvlRadii += toString(m_header.targetRadii[i].meters()); } netInfo += pvlRadii; } netInfo += PvlKeyword("UserName", protobufHeader.username().c_str()); netInfo += PvlKeyword("Created", protobufHeader.created().c_str()); netInfo += PvlKeyword("LastModified", protobufHeader.lastmodified().c_str()); netInfo += PvlKeyword("Description", protobufHeader.description().c_str()); netInfo += PvlKeyword("NumberOfPoints", toString(numPoints)); netInfo += PvlKeyword("NumberOfMeasures", toString(numMeasures)); netInfo += PvlKeyword("Version", "5"); protoObj.addGroup(netInfo); Loading
isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.truth +10 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ Object = ControlNetwork Created = Null LastModified = Null Description = Null TargetRadii = (3396190.0, 3396190.0, 3376200.0) Version = 5 Object = ControlPoint Loading Loading @@ -76,6 +77,7 @@ Object = ControlNetwork Created = Null LastModified = Null Description = "Test Network" TargetRadii = (2575000.0, 2575000.0, 2575000.0) Version = 5 Object = ControlPoint Loading Loading @@ -132,6 +134,7 @@ Object = ControlNetwork Created = 2010-07-10T12:50:15 LastModified = 2010-07-10T12:50:55 Description = "UnitTest of ControlNetwork" TargetRadii = (3396190.0, 3396190.0, 3376200.0) Version = 5 Object = ControlPoint Loading Loading @@ -329,6 +332,7 @@ Object = ControlNetwork Created = 2012-01-04T12:09:57 LastModified = 2012-01-04T12:09:57 Description = "Themis Day IR Network: Lunae Palus, Lat(0,30) Lon(270-315)" TargetRadii = (3396190.0, 3396190.0, 3376200.0) Version = 5 Object = ControlPoint Loading Loading @@ -559,7 +563,12 @@ After reading and writing to a binary form does Pvl match? Conversion to Pvl stays consistent Reading/Writing control network is consistent Check conversions between the binary format and the pvl format. The conversion methods for pvl->bin and bin->pvl are correct. 8c8,9 < Version = 3 --- > TargetRadii = (3396190.0, 3396190.0, 3376200.0) > Version = 5 The conversion from pvl to binary is incorrect. Reading: $control/testData/unitTest_ControlNetVersioner_PvlNetwork5_PvlV0003.pvl... Loading