SQL – How to Identify Geometry Types