geometry ยท console.warn
a "{op}" condition was refused: {reason}. It...
Printed by geometry, prefixed [lattice], since 1.73.0.
Warnings reference › filter:geometry:*
- Identifier
filter:geometry:*- Raised by
- geometry
- Since
- 1.73.0
What happened
A spatial condition reached the filter kernel with an operand it cannot read - a box whose west edge is east of its east edge (the antimeridian, which is not handled), a withinPolygon operand that is not a polygon, a withinDistance without lon, lat and metres. The condition matches no row. A grid's own filters.set() refuses such a condition before it installs; this is the path a host reaches by calling the kernel or testValue directly.
The fix
Give the operand the operator expects. For a box across the antimeridian, split it into two withinBbox conditions joined by or.
The smallest fix
grid.filters.set({ op: 'or', conditions: [
{ col: 'site', op: 'withinBbox', value: [177, -19, 180, -16] },
{ col: 'site', op: 'withinBbox', value: [-180, -19, -178, -16] },
] });
Reference
Covered in full at the API reference.