Re: [gdal-dev] Bindings for the histogram method of band

2008-07-23 Thread Ari Jolma
Howard Butler kirjoitti: On Jul 22, 2008, at 9:48 AM, Ari Jolma wrote: The trac.osgeo.org does not answer so I'll put this here. Hobu, would it be ok to have (int len, int *output) typemap. They can be used in GetHistogram method like this (note that the API is same for C# but it must use d

Re: [gdal-dev] Bindings for the histogram method of band

2008-07-23 Thread Tamas Szekeres
Using the same approach for the csharp bindings seems much more complicated than the current method. Currently the caller (at the csharp side) allocates a fixed length int array and the default marshaler takes care of passing the array to the unmanaged (C) part of the code. There's no need to do ex

Re: [gdal-dev] Bindings for the histogram method of band

2008-07-22 Thread Howard Butler
On Jul 22, 2008, at 9:48 AM, Ari Jolma wrote: The trac.osgeo.org does not answer so I'll put this here. Hobu, would it be ok to have (int len, int *output) typemap. They can be used in GetHistogram method like this (note that the API is same for C# but it must use different typemaps. From

[gdal-dev] Bindings for the histogram method of band

2008-07-22 Thread Ari Jolma
The trac.osgeo.org does not answer so I'll put this here. Hobu, would it be ok to have (int len, int *output) typemap. They can be used in GetHistogram method like this (note that the API is same for C# but it must use different typemaps. From Band.i: #ifndef SWIGCSHARP %feature( "kwargs" ) G