<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Barry,</p>
<p>This method is indeed not available currently in the Java
bindings. It is only available currently in the Python bindings
(see
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/blob/master/swig/include/MultiDimensional.i#L159">https://github.com/OSGeo/gdal/blob/master/swig/include/MultiDimensional.i#L159</a>
) , since it requires writing a specific SWIG typemap for each
binding language when a method returns (or takes as argument) a
new non-primitive type such as here, with an array of dimensions.
The closest existing Java typemap I found that can be used to take
inspiration from is
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/blob/master/swig/include/java/typemaps_java.i#L235">https://github.com/OSGeo/gdal/blob/master/swig/include/java/typemaps_java.i#L235</a>
but there would be changes to call the "Dimension(long cPtr,
boolean cMemoryOwn)" constructor. Whether you want to try to
tackle that yourself or not, you may create a ticket about that</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 03/06/2023 à 09:09, Barry DeZonia a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAKcvfuTURFgnmm=xEQMbxZMuqG=TH7rPx5HriH+6oY660pNwQQ@mail.gmail.com">
<div dir="ltr">On a related note is the Java api code in a public
repo somewhere? It would be helpful to look at that code
sometimes. (Like is GetDimensions() present in the Java code but
not exposed as a public method?)</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Jun 3, 2023 at
12:18 AM Barry DeZonia <<a href="mailto:bdezonia@gmail.com"
moz-do-not-send="true" class="moz-txt-link-freetext">bdezonia@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I have access to an MDArray. I am trying to find its
dimensions. In the C++ API I can see that GDALMDArray has
a method called GetDimensions() to find the info I need.
But I am programming in Java and the Java API does not
show such a call for MDArray. Is there some way in Java to
find the info I need?</div>
</div>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>