From 79731d5e2dc0672129ebcc449d048eea4a01aba2 Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Thu, 3 Sep 2026 18:16:48 +0200 Subject: [PATCH] Refresh the committed functions snapshot against the MEOS surface Regenerating from a catalog derived at current master moves two wrappers, both of them MEOS's own movement rather than a generator change: * `tbigint_values` takes `int *` where the snapshot recorded `int32_t *`, so the cast becomes `(*C.int)`; * `geom_azimuth` joins the geo surface, and it carries a folded out-parameter, so the wrapper answers `(bool, float64, error)`. The committed snapshot is what CI compiles before it regenerates, so it has to be the projection of the surface that exists today rather than of the one that existed when it was last written. --- functions/meos_meos.go | 2 +- functions/meos_meos_geo.go | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/functions/meos_meos.go b/functions/meos_meos.go index 33e4052..0ce5f79 100644 --- a/functions/meos_meos.go +++ b/functions/meos_meos.go @@ -10307,7 +10307,7 @@ func TintValues(temp *Temporal, count unsafe.Pointer) (_r0 unsafe.Pointer, _err // TbigintValues wraps MEOS C function tbigint_values. func TbigintValues(temp *Temporal, count unsafe.Pointer) (_r0 unsafe.Pointer, _err error) { C.meos_errno_reset() - _cret := C.tbigint_values(temp._inner, (*C.int32)(unsafe.Pointer(count))) + _cret := C.tbigint_values(temp._inner, (*C.int)(unsafe.Pointer(count))) if _err = meosError(); _err != nil { return } diff --git a/functions/meos_meos_geo.go b/functions/meos_meos_geo.go index 904bcbc..9e3b7ca 100644 --- a/functions/meos_meos_geo.go +++ b/functions/meos_meos_geo.go @@ -491,6 +491,17 @@ func GeomAzimuth(gs1 *Geom, gs2 *Geom) (_r0 bool, _r1 float64, _err error) { } +// GeomArea wraps MEOS C function geom_area. +func GeomArea(gs *Geom) (_r0 float64, _err error) { + C.meos_errno_reset() + _cret := C.geom_area(gs._inner) + if _err = meosError(); _err != nil { + return + } + return float64(_cret), nil +} + + // GeomLength wraps MEOS C function geom_length. func GeomLength(gs *Geom) (_r0 float64, _err error) { C.meos_errno_reset()