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:


Add missing typemaps for VSILFILE, RasterizeLayer, GetDefaultHistogram, SetDefaultHistogram

Change History (5)

comment:1 by tamas, 11 years ago

Fixed in r26526 and r26527

comment:2 by tamas, 11 years ago

Typemap for RegenerateOverviews is still missing

comment:3 by dengo, 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 Even Rouault, 9 years ago

Milestone: 1.10.2

comment:5 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

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 if it is not already reported there.

Note: See TracTickets for help on using tickets.