Opened 16 years ago
Closed 16 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 by , 16 years ago
Status: | new → assigned |
---|
comment:2 by , 16 years ago
Milestone: | → 1.5.3 |
---|
Added the implementation in trunk. Will backport to the stable branch.
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
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