<div dir="ltr">Hello,<div><br></div><div>I am trying to extend the Java API so that the MDArray code is more full featured. Right now I am working on extending Attribute to return a Vector<Dimension> when Attribute::GetDimensions() is called. Much of this support is missing and I am in the process of wiring it up. I am starting to write test code to drive development and have two questions about my test code. I am pasting the code below with questions inlined.</div><div><br></div><div>private static void testGetDimensions() {<br><br>    // QUESTION 1:</div><div>    // how do I create a Group programmatically?<br>         <br>    Group group1 = new Group("universe1");  // NOPE<br>        <br>    Group group2 = Group.CreateGroup("universe2");  // NOPE<br><br>    // QUESTION 2:</div><div>    // What is a SWIGTYPE_p_GUIntBig?<br>    //  Is this type exposed in MDArray API as a flaw in the current Java API?</div><div>    //  See API docs for MDArray::CreateAttribute()<br>        <br>    group1.CreateAttribute("jane",<br>                                1,<br>                                null,  // wants an array of SWIGTYPE_p_GUIntBig<br>                                ExtendedDataType.Create(gdalconst.GDT_UInt16));<br>                    <br>    Attribute attribute = group.GetAttribute("jane");<br>           <br>    Vector<Dimension> dims = attribute.GetDimensions();<br>}<br></div><div><br></div><div>So can anyone answer my two questions? Am I approaching this right? Thanks for any info.</div><div><br></div></div>