NITRO ENGRDA doesn't work #394
Replies: 7 comments 3 replies
-
Perhaps you can post a minimal, self-contained, compileable example of what you are trying to do? |
Beta Was this translation helpful? Give feedback.
-
#include int main() #if 0 tre.setField("NUMAIS", "001"); #if 1
} tre.setField("AISDLVL[0]", 200, true); #endif nitf::TRE engrda("ENGRDA" , "ENGRDA" ); engrda.setField("RESRC","HSS"); nitf::TREFieldIterator it = engrda.begin();
} try { } This example throws an exception that ENGDATA[0] is not a recognixed field for this TRE the fields printed in the iterator loop are Can someone run this and see if they get the same issue? Why isn't ENGDATA[0] not a valid field and how does one put a value in? |
Beta Was this translation helpful? Give feedback.
-
Then how do you set the actual engineering data? ENGDATA is a valid field according to the nga documentation
Sent from Yahoo Mail on Android
On Wed, Aug 25, 2021 at 5:55 PM, J. Daniel ***@***.***> wrote:
ENGDATA[0] is not a field; see test_tre_mods++.cpp
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
The TRE is ENGRD but the field I want to set is called ENGDATA
this is an example I found online
On Wednesday, August 25, 2021, 8:30:21 PM EDT, Steven Herrick ***@***.***> wrote:
Then how do you set the actual engineering data? ENGDATA is a valid field according to the nga documentation
Sent from Yahoo Mail on Android
On Wed, Aug 25, 2021 at 5:55 PM, J. Daniel ***@***.***> wrote:
ENGDATA[0] is not a field; see test_tre_mods++.cpp
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Interesting, the test mod code you pointed to has the ENGDATA commentred out, probably because it doesn't work
On Wednesday, August 25, 2021, 8:30:21 PM EDT, Steven Herrick ***@***.***> wrote:
Then how do you set the actual engineering data? ENGDATA is a valid field according to the nga documentation
Sent from Yahoo Mail on Android
On Wed, Aug 25, 2021 at 5:55 PM, J. Daniel ***@***.***> wrote:
ENGDATA[0] is not a field; see test_tre_mods++.cpp
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
I'll try it today, thanks
On Thursday, August 26, 2021, 10:34:10 AM EDT, J. Daniel Smith ***@***.***> wrote:
TEST_CASE(basicIteration_ENGRDA)
{
nitf::TRE engrda("ENGRDA", "ENGRDA");
engrda.setField("RESRC", "HSS");
engrda.setField("RECNT", 1, true /*forceUpdate*/);
engrda.setField("ENGDTS[0]", 8); // size
engrda.setField("ENGDATC[0]", 1); // count
engrda.updateFields();
engrda.setField("ENGDATA[0]", "ABC");
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Do you know how to put an array say on integrers in as ENGDATA? I knwo I would use ENGMTXC and ENGMTXR buit I 'm not sure uif I just put the array as the arg to ENGDATA[0]
On Thursday, August 26, 2021, 10:34:10 AM EDT, J. Daniel Smith ***@***.***> wrote:
TEST_CASE(basicIteration_ENGRDA)
{
nitf::TRE engrda("ENGRDA", "ENGRDA");
engrda.setField("RESRC", "HSS");
engrda.setField("RECNT", 1, true /*forceUpdate*/);
engrda.setField("ENGDTS[0]", 8); // size
engrda.setField("ENGDATC[0]", 1); // count
engrda.updateFields();
engrda.setField("ENGDATA[0]", "ABC");
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
I have been unable to add an ENGRDA TRE successfully with Nitro. It complains either the ENGLLB[0] doesn't exist which it does and the ENGDATA[0] label doesn't exist. I suspect that is why there is no test example code with nitro. If someone has a simple example of a successfull ENGRDA addition please post.
Beta Was this translation helpful? Give feedback.
All reactions