Re: [gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-26 Thread Brad Hards
On Monday, 27 February 2023 1:27:54 AM AEDT Amadeus WM via gdal-dev wrote: > Oh, wait, it does put IGEOLO in the output nitf, but I also get the > warning: > > Warning 6: driver NITF does not support creation option IGEOLO Clearly it does support it, since it works correctly. The message is a fal

Re: [gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-26 Thread Amadeus WM via gdal-dev
Oh, wait, it does put IGEOLO in the output nitf, but I also get the warning: Warning 6: driver NITF does not support creation option IGEOLO On Sun, 26 Feb 2023 16:04:16 +1100, Brad Hards wrote: > On Sunday, 26 February 2023 2:33:31 PM AEDT Amadeus WM via gdal-dev > wrote: >> So I just noticed

Re: [gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-26 Thread Amadeus WM via gdal-dev
Thank you so much, it worked! It's a life saver! I have read the nitf creation issues before even posting here, and I also tried to set the options at creation time like this: char** opt=nullptr; opt=CSLSetNameValue(opt, "NITF_ICORDS", "D"); opt=CSLSetNameValue(opt, "NITF_IGEOLO",

Re: [gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-25 Thread Brad Hards
On Sunday, 26 February 2023 2:33:31 PM AEDT Amadeus WM via gdal-dev wrote: > So I just noticed that if I call > > dataset->SetMetadataItem(); > > then it creates a file out.ntf.aux.xml and whatever fields I set go in > there. Both NITF_ICORDS and NITF_IGEOLO are there, and IGEOLO need not be > a

Re: [gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-25 Thread Amadeus WM via gdal-dev
So I just noticed that if I call dataset->SetMetadataItem(); then it creates a file out.ntf.aux.xml and whatever fields I set go in there. Both NITF_ICORDS and NITF_IGEOLO are there, and IGEOLO need not be a real value, it gets set to whatever I set it to. Is there any way to put those fields

Re: [gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-25 Thread Amadeus WM via gdal-dev
Yes, I tried it in python and it works, but it needs to be in C++. Following your suggestion, I changed my code like so: dataset->SetMetadataItem("NITF_ICORDS", "D"); dataset->SetMetadataItem("NITF_IGEOLO", "+28.563-080.578+28.563-080.577+28.562-080.577+28.562-080.578"); Again, NITF_IC

Re: [gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-24 Thread Brad Hards
On Saturday, 25 February 2023 4:44:10 PM AEDT Amadeus WM via gdal-dev wrote: > Hello everyone, > > I'm new to GDAL and I'm trying to figure out how to create a NITF file > given the raw data, that also has the NITF_IGEOLO field set. With a > little help from chatGPT I came up with the c++ program

[gdal-dev] create ntif file with NITF_IGEOLO field set

2023-02-24 Thread Amadeus WM via gdal-dev
Hello everyone, I'm new to GDAL and I'm trying to figure out how to create a NITF file given the raw data, that also has the NITF_IGEOLO field set. With a little help from chatGPT I came up with the c++ program below (it has to be in c++). It writes the file, but it does not contain the NITF_IGEOL