diff --git a/osr.go b/osr.go index a540213..81f2c77 100644 --- a/osr.go +++ b/osr.go @@ -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()