just use the @ stuff to avoid the php warning message : @$oLayer->queryByPoint($pon_point,MS_SINGLE,-1); It then should work properly, without warning. --------------------------- Guillaume SUEUR Ingénieur développement SIG KHI2 - BVA 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ----------------------------