[geos-devel] Should DistanceWithin(EMPTY, ANYTHING, ANYDISTANCE) always return false ?

Sandro Santilli strk at kbt.io
Mon Oct 4 08:02:24 PDT 2021


I'd think yes, honestly, but the current code returns TRUE sometimes,
particularly for MAXDISTANCE being Infinite...

As I think GEOS is not being used by phylosophers, I can't find any
reason why would anyone want a TRUE result from a DistanceWithin()
query involving an EMPTY geometry.

--strk; 

  Libre GIS consultant/developer
  https://strk.kbt.io/services.html


More information about the geos-devel mailing list