private static Field geometryField(String name, FunctionThatThrows<WithGeometry, Geometry> getter) {
    return new Field(name, PROTO_TYPE, geom -> new GeometryVal(WithGeometry.fromWorldGeometry(getter.apply(geom))));
  }
Wrapper for a geometry that exposes utility functions to CEL expressions.
planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/expression/stdlib/GeometryVal.java