Returns the number of dimensions of the geometric object.
 

1 geo.getDim

<geo.getDim>
    <geom_column /> *
</geo.getDim>
Example
Copy
<select>
    <columns>
        -- 1
        <geo.getDim>a.the_geom</geo.getDim>,

        -- 2
        <geo.getDim>
            <geo.polygon>
               <coords>0 0,0 1,1 1,1 0,0 0</coords>
               <srid>4326</srid>
            </geo.polygon>
        </geo.getDim>,
    </columns>
    <from table='dual' alias='a' />
</select>