(2) All offences and matters cognizable before any magistrate or justice of the peace in a summary manner under any statute, committed or arising in or within the limits of any bay, creek, or inlet of the sea of or within Saint Lucia, may be heard and determined by the magistrate within whose district such bay, creek, or inlet of the sea may be; and all such offences and matters aforesaid committed or arising on board of any ship, vessel, or boat beyond the limits aforesaid may be heard and determined by the magistrate off the shore of whose district such ship, vessel, or boat may be at the time of the commission of the offence or of such matter arising as aforesaid, or on or near to the shore of whose district such ship, vessel, or boat, after the commission of the offence or the arising of the matter aforesaid, may anchor or touch.