A geometry with SRID=%1 is not supported when computing distance between non-point geometries

Error constant SQLE_SLERR_ROUND_EARTH_UNSUPPORTED_DIS
ODBC 2 state ERROR
ODBC 3 state ERROR
Parameter 1 The SRID of the geometry.
Severity 16
SQLCODE -1436
SQLSTATE 2FW29
Sybase error code 13136
 Probable cause