Opened 17 years ago

Closed 17 years ago

#1552 closed defect (fixed)

Incorrect signature for Dataset.BuildOverviews in C# bindings

Reported by: jbeverage Owned by: tamas
Priority: normal Milestone: 1.5.0
Component: CSharpBindings Version: unspecified
Severity: normal Keywords:
Cc:

Description

The signature for Dataset.BuildOverviews in the C# bindings is: int BuildOverviews(string resampling, int overviewlist)

The C++ signature has many more arguments, and it seems like at the very least you have to pass in an array of overview levels instead of just a single int for the overviewlist to have the method do anything meaningful.

Change History (3)

comment:1 by tamas, 17 years ago

Milestone: 1.4.1
Status: newassigned

The following changes have been made for the SVN trunk:

  1. Added the following signature for the Dataset class:

public int BuildOverviews( string resampling, int[] overviewlist)

  1. Added apps/GDALOverviews.cs to demonstrate the usage of Dataset.BuildOverviews
  1. Added support for extracting a particular overview int GDALRead.cs and GDALReadDirect.cs.

To test this feature one can use the following commands:

gdaloverviews {GDAL dataset name} {resamplealg} {level1} {level2} ... gdalread {GDAL dataset name} {outfile} {level1} gdalread {GDAL dataset name} {outfile} {level2} ...

comment:2 by tamas, 17 years ago

Milestone: 1.4.11.5.0

comment:3 by tamas, 17 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.