Opened 11 years ago
Closed 5 years ago
#5265 closed defect (wontfix)
Missing typemaps for c#
Reported by: | tamas | Owned by: | tamas |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Add missing typemaps for VSILFILE, RasterizeLayer, GetDefaultHistogram, SetDefaultHistogram
Change History (5)
comment:1 by , 11 years ago
comment:3 by , 10 years ago
I have noticed that the C# mapping for the GetDefaultHistogram does not seem to work.
The generated GdalPINVOKE code is:
[DllImport("gdal_wrap", EntryPoint = "CSharp_Band_GetDefaultHistogram")] public static extern int Band_GetDefaultHistogram(HandleRef jarg1, out double jarg2, out double jarg3, out int jarg4, out int[] jarg5, int jarg6, Gdal.GDALProgressFuncDelegate jarg7, string jarg8);
The problem probably is that the Marshaller can not know the size of "out int[]". Probably better to pass this Parameter as a pointer and then read from it using the value of the previous Parameter as the length (and then calling VSIFree on the pointer).
comment:4 by , 9 years ago
Milestone: | 1.10.2 |
---|
comment:5 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
Fixed in r26526 and r26527