Skip to content

Commit

Permalink
Rename setGCPsOpt() -> setSetGCPsOpt()
Browse files Browse the repository at this point in the history
  • Loading branch information
pericles-tpt committed Sep 29, 2023
1 parent 66d34b3 commit 9ca3805
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions godal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9ca3805

Please sign in to comment.