Skip to content

Commit

Permalink
Added Transform() method to CoordinateTransform.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kube committed Feb 1, 2016
1 parent 663a172 commit 9516733
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osr.go
Expand Up @@ -1188,6 +1188,11 @@ func (ct CoordinateTransform) Destroy() {
C.OCTDestroyCoordinateTransformation(ct.cval)
}

func (ct CoordinateTransform) Transform(numPoints int, xPoints []float64, yPoints []float64, zPoints []float64) bool {
val := C.OCTTransform(ct.cval, C.int(numPoints), (*C.double)(unsafe.Pointer(&xPoints[0])), (*C.double)(unsafe.Pointer(&yPoints[0])), (*C.double)(unsafe.Pointer(&zPoints[0])))
return int(val) != 0
}

// Fetch list of possible projection methods
func ProjectionMethods() []string {
p := C.OPTGetProjectionMethods()
Expand Down

0 comments on commit 9516733

Please sign in to comment.