I set the error and the the error is "msQueryByRect(): Search returned no results. No matching record(s) found." . But I am sure that, the postgis connection and query is OK. And I can't understand where the error is? If you have any idea please help me.