Problem: SPATIALFILTER envelope_intersection does not work with ArcSDE points and some lines


When using SPATIALQUERY relation="envelope_intersection" on ArcSDE layers, no features are returned when

--MULTIPOINT is used.
--a POLYLINE where all x-coordinates or all y-coordinates are the same.


Points and some lines do not have an associated envelope and hence cannot be used to query features using envelope_intersection.

Solution or Workaround

Use SPATIALFILTER relation="area_intersection".