diff --git a/errors.go b/errors.go index 313d007..3fd4aed 100644 --- a/errors.go +++ b/errors.go @@ -373,7 +373,7 @@ func (ec errorCallback) setGridOpt(o *gridOpts) { func (ec errorCallback) setNearblackOpt(o *nearBlackOpts) { o.errorHandler = ec.fn } -func (ec errorCallback) setGCPsOpt(o *setGCPsOpts) { +func (ec errorCallback) setSetGCPsOpt(o *setGCPsOpts) { o.errorHandler = ec.fn } diff --git a/godal.go b/godal.go index 98f5f70..e79c857 100644 --- a/godal.go +++ b/godal.go @@ -4016,7 +4016,7 @@ func (ds *Dataset) GetGCPProjection() string { func (ds *Dataset) SetGCPs(GCPList []GCP, pszGCPProjection string, opts ...SetGCPsOption) error { setGCPsOpts := setGCPsOpts{} for _, opt := range opts { - opt.setGCPsOpt(&setGCPsOpts) + opt.setSetGCPsOpt(&setGCPsOpts) } cgc := createCGOContext(nil, setGCPsOpts.errorHandler) @@ -4034,7 +4034,7 @@ func (ds *Dataset) SetGCPs(GCPList []GCP, pszGCPProjection string, opts ...SetGC func (ds *Dataset) SetGCPs2(GCPList []GCP, sr *SpatialRef, opts ...SetGCPsOption) error { setGCPsOpts := setGCPsOpts{} for _, opt := range opts { - opt.setGCPsOpt(&setGCPsOpts) + opt.setSetGCPsOpt(&setGCPsOpts) } cgc := createCGOContext(nil, setGCPsOpts.errorHandler) diff --git a/options.go b/options.go index d4fde93..f85747e 100644 --- a/options.go +++ b/options.go @@ -1260,7 +1260,7 @@ type setGCPsOpts struct { // SetGCPsOption is an option that can be passed to Dataset.SetGCPs() type SetGCPsOption interface { - setGCPsOpt(sgOpt *setGCPsOpts) + setSetGCPsOpt(sgOpt *setGCPsOpts) } // RasterizeGeometryOption is an option that can be passed tp Dataset.RasterizeGeometry()