Ensure that the spatiotemporal argument and the geometry/geography have the same type of coordinates, either planar or geodetic.