Ticket #2426 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by tamas

  • status changed from new to assigned

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

Changed 5 years ago by tamas

  • milestone set to 1.5.3

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

Changed 5 years ago by tamas

  • status changed from assigned to closed
  • resolution set to fixed

Added to the stable branch r14917 r14918

Note: See TracTickets for help on using tickets.