PostGIS  2.2.7dev-r@@SVN_REVISION@@
PG_FUNCTION_INFO_V1 ( LWGEOM_ndims  )

Return: 2,3 or 4.