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

Return: 2,3 or 4.