What is the difference between square planar and square pyramidal shape?

what is the difference between square planar and square pyramidal shape? please explain by giving an illustration of each.

Square planar:
image
Example: XeF4

Square pyramidal:
image
Example: BrF4