Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-05 Thread Laurențiu Nicola via gdal-dev
Hi Barry, I haven't used Java in a while, but those are type signatures as used in JNI. If I recall correctly, (DLjava/lang/Long;Ljava/lang/Boolean;)V is void f(double p1, double p2, double p3, double p4, double p5, long p6, boolean p6). They're used to disambiguate overloaded methods. Lau

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-05 Thread Barry DeZonia
Even, Does this look okay as part of my typemap declaration? It is the only part I am confused about. I am very unfamiliar with this "(DL" stuff And the L and V after each parameter. Where can I learn what this stuff means? %typemap(argout) (int *nDimensions, GDALDimenion const **pDimensi

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-03 Thread Laurențiu Nicola via gdal-dev
Hi, On Sat, Jun 3, 2023, at 19:03, Even Rouault wrote: > Yes the multidim API is probably currently hardly usable outside C, C++ and > Python due to the lack of a few critical typemaps for the other languages. > These are unofficial and much less mature, but the Rust bindings have some basic m

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-03 Thread Even Rouault
Le 03/06/2023 à 18:16, Barry DeZonia a écrit : Ok, thanks. I will consider this for some of my future weekend-playtime-programming days. Yes, I'm a masochist. great, we'd definitely welcome a few ones :-) Are there other typemaps needed that would further strengthen the Java api support? B

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-03 Thread Barry DeZonia
Ok, thanks. I will consider this for some of my future weekend-playtime-programming days. Yes, I'm a masochist. Are there other typemaps needed that would further strengthen the Java api support? On Sat, Jun 3, 2023 at 11:03 AM Even Rouault wrote: > > Le 03/06/2023 à 17:45, Barry DeZonia a écri

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-03 Thread Even Rouault
Le 03/06/2023 à 17:45, Barry DeZonia a écrit : Thanks Even. I might be able to find some time to do the SWIG work depending upon the amount of development time needed. I am a long time developer with experience in Java, C, and C++ (but have not used SWIG before). Is it just a few signatures

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-03 Thread Barry DeZonia
Thanks Even. I might be able to find some time to do the SWIG work depending upon the amount of development time needed. I am a long time developer with experience in Java, C, and C++ (but have not used SWIG before). Is it just a few signatures I need to write or do I need to write full support fo

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-03 Thread Even Rouault
Barry, This method is indeed not available currently in the Java bindings. It is only available currently in the Python bindings (see https://github.com/OSGeo/gdal/blob/master/swig/include/MultiDimensional.i#L159 ) , since it requires writing a specific SWIG typemap for each binding language

Re: [gdal-dev] Java API: how to find dimensions of MDArray

2023-06-03 Thread Barry DeZonia
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?) On Sat, Jun 3, 2023 at 12:18 AM Barry DeZonia wrote: > Hi all, > > I have access to an MDA

[gdal-dev] Java API: how to find dimensions of MDArray

2023-06-02 Thread Barry DeZonia
Hi all, 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