Opened 9 years ago

Closed 9 years ago

#2426 closed task (fixed)

csharp Dataset.SetGCPs should take a collection of ground control points

Reported by: johanb Owned by: tamas
Priority: normal Milestone: 1.5.3
Component: CSharpBindings Version: unspecified
Severity: major Keywords:
Cc:

Description

The C++ interface takes an array of ground control points, the C# version only one... Have tried the following code without success. Only the first point is set according to gdalinfo.

GCP[] gcps = new GCP[] {

new GCP(1411000, 6407000, 0, 389, 374, null, null), new GCP(1412000, 6407000, 0, 821, 372, null, null), new GCP(1412000, 6406000, 0, 823, 804, null, null), new GCP(1411000, 6406000, 0, 390, 217, null, null) };

ds.SetGCPs(gcps.Length, gcps[0], wkt);

Change History (3)

comment:1 Changed 9 years ago by tamas

Status: newassigned

The typemap for the array of GCPs need to be added to the bindings. I`ll prepare a fix for this ASAP. Bug #1986 appears to be related to this problem.

Tamas

comment:2 Changed 9 years ago by tamas

Milestone: 1.5.3

Added the implementation in trunk. Will backport to the stable branch.

comment:3 Changed 9 years ago by tamas

Resolution: fixed
Status: assignedclosed

Added to the stable branch r14917 r14918

Note: See TracTickets for help on using tickets.