diff --git a/pkg/geometry/geometry.go b/pkg/geometry/geometry.go index 739bebb..de569a2 100644 --- a/pkg/geometry/geometry.go +++ b/pkg/geometry/geometry.go @@ -11,7 +11,7 @@ import ( ) func IsInGeom(point []float64, geometry mapobject.Geometry) bool { - if point == nil { + if point == nil || len(point) != 2 { return false } if geometry.GeomType == "Point" {