Opened 6 years ago

Closed 2 months 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 Changed 6 years ago by tamas

Fixed in r26526 and r26527

comment:2 Changed 6 years ago by tamas

Typemap for RegenerateOverviews? is still missing

comment:3 Changed 5 years ago by dengo

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 Changed 4 years ago by Even Rouault

Milestone: 1.10.2

comment:5 Changed 2 months ago by Even Rouault

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 https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.