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

Return: 2,3 or 4.